diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-16 19:47:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-16 19:47:41 +0300 |
commit | aefe9be5db3f767c343bae56eb49621a78b7d5b2 (patch) | |
tree | 528f363100f80b47f15d265a23499eae781dbe50 /source/gameengine/VideoTexture/Exception.h | |
parent | ed540dd1f17eb4e8e81068509ffc93933a548aef (diff) |
[#18961] Use const char * where appropriate (2.5)
from Sean Bartell (wtachi)
added own changes bpy_props.c
Diffstat (limited to 'source/gameengine/VideoTexture/Exception.h')
-rw-r--r-- | source/gameengine/VideoTexture/Exception.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/VideoTexture/Exception.h b/source/gameengine/VideoTexture/Exception.h index 1a3c25071b1..4a57a7f20e4 100644 --- a/source/gameengine/VideoTexture/Exception.h +++ b/source/gameengine/VideoTexture/Exception.h @@ -91,7 +91,7 @@ class ExpDesc { public: // constructor a destructor - ExpDesc (ExceptionID & exp, char * desc, RESULT hres = S_OK); + ExpDesc (ExceptionID & exp, const char * desc, RESULT hres = S_OK); ~ExpDesc (void); // comparision function @@ -132,7 +132,7 @@ private: // result RESULT m_hRslt; // description - char * m_description; + const char * m_description; // not allowed ExpDesc (const ExpDesc & obj) : m_expID (ErrNotFound) {} @@ -157,9 +157,9 @@ public: virtual const char * what(void); // debug version of constructor - Exception (ExceptionID & expID, RESULT rslt, char * fil, int lin); + Exception (ExceptionID & expID, RESULT rslt, const char * fil, int lin); // set source file and line of exception - void setFileLine (char * fil, int lin); + void setFileLine (const char * fil, int lin); // get description in string std::string & getDesc (void) throw() { return m_desc; } @@ -174,7 +174,7 @@ public: static std::string m_lastError; /// log file name - static char * m_logFile; + static const char * m_logFile; protected: // exception identification |