equal
deleted
inserted
replaced
1709 GfxException(const int& aErrorCode, const QString aMsg) : mErrorCode(aErrorCode) |
1709 GfxException(const int& aErrorCode, const QString aMsg) : mErrorCode(aErrorCode) |
1710 { |
1710 { |
1711 mMsg = new char[aMsg.size()+1]; |
1711 mMsg = new char[aMsg.size()+1]; |
1712 strcpy(mMsg, aMsg.toAscii().data()); |
1712 strcpy(mMsg, aMsg.toAscii().data()); |
1713 }; |
1713 }; |
1714 //~GfxException() { delete mMsg; }; |
1714 ~GfxException() { delete mMsg; mMsg = NULL; }; |
1715 int getErrorCode() { return mErrorCode; }; |
1715 int getErrorCode() { return mErrorCode; }; |
1716 const char* getMsg() { return (const char*)mMsg; }; |
1716 const char* getMsg() { return (const char*)mMsg; }; |
1717 private: |
1717 private: |
1718 int mErrorCode; |
1718 int mErrorCode; |
1719 char* mMsg; |
1719 char* mMsg; |