Spring cleaning
[platform/core/test/security-tests.git] / src / framework / include / dpl / exception.h
index eb5cfc7..214a8cf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011-2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -114,12 +114,12 @@ class Exception
 
     static void DisplayKnownException(const Exception& e)
     {
-        LogUnhandledException(KnownExceptionToString(e).c_str());
+        LogUnhandledException(KnownExceptionToString(e));
     }
 
     static void DisplayUnknownException()
     {
-        LogUnhandledException(UnknownExceptionToString().c_str());
+        LogUnhandledException(UnknownExceptionToString());
     }
 
     Exception(const Exception &other)