elf/tests/helloxx: fix build break with elf cpp exceptions example
fix the below build error by correcting the typo (tring -> string) hello++5.cxx: In member function 'virtual void CThingSayer::ThrowMyThing(const char*)': hello++5.cxx:157:21: error: 'tring' was not declared in this scope 157 | throw MyException(tring(czSayThis)); | ^~~~~ Signed-off-by: Abhishek Akkabathula <a.akkabathul@samsung.com>
This commit is contained in:
parent
90c9364b3b
commit
da9903fe57
@ -154,7 +154,7 @@ void CThingSayer::ThrowThing(void)
|
||||
void CThingSayer::ThrowMyThing(const char *czSayThis = NULL)
|
||||
{
|
||||
cout << "CThingSayer::ThrowMyThing: I am now throwing an MyException (with reason)." << endl;
|
||||
throw MyException(tring(czSayThis));
|
||||
throw MyException(string(czSayThis));
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user