javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/graphics.h
changeset 87 1627c337e51e
parent 80 d6dafc5d983f
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
  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;