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:
Abhishek Akkabathula 2024-02-13 17:36:21 +05:30 committed by Alin Jerpelea
parent 90c9364b3b
commit da9903fe57

View File

@ -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));
}
/////////////////////////////////////////////////////////////////////////////