Revise cpp codes
[platform/core/api/audio-io.git] / include / CAudioError.h
index a18d0b0..c066e87 100644 (file)
@@ -67,11 +67,11 @@ namespace tizen_media_audio {
         static const unsigned int MSG_LENGTH = 512;
 
         /* Constructor & Destructor */
-        CAudioError(EError err);
+        explicit CAudioError(EError err);
         CAudioError(EError err, const char* fileName, const char* parentFunc, int lineNum);
         CAudioError(EError err, const char* msg, const char* fileName, const char* parentFunc, int lineNum);
         CAudioError(const CAudioError& err);
-        ~CAudioError();
+        virtual ~CAudioError() = default;
 
         /* Static Methods */
         static EError getLastError();
@@ -95,7 +95,7 @@ namespace tizen_media_audio {
         static EError __mLastError;
         static char   __mLastErrorMsg[MSG_LENGTH];
         EError        __mError;
-        char          __mErrorMsg[MSG_LENGTH];
+        char          __mErrorMsg[MSG_LENGTH]{};
     };