X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2Fexception.hxx;h=3a8bcab70b7e52bb6601725602734f553d43eb35;hb=b5a59ea6f95ce12de0f5db76d90d066b5cb6b41a;hp=eaf126959f5901f4482f3be686d59400b58c89f3;hpb=76948416a9624ba269d2baeac294c6db0853f104;p=simgear.git diff --git a/simgear/structure/exception.hxx b/simgear/structure/exception.hxx index eaf12695..3a8bcab7 100644 --- a/simgear/structure/exception.hxx +++ b/simgear/structure/exception.hxx @@ -26,7 +26,7 @@ using std::string; class sg_location { public: - enum {MAX_PATH = 1024}; + enum {max_path = 1024}; sg_location (); sg_location(const std::string& path, int line = -1, int column = -1); explicit sg_location(const char* path, int line = -1, int column = -1); @@ -41,7 +41,7 @@ public: virtual void setByte (int byte); virtual std::string asString () const; private: - char _path[MAX_PATH]; + char _path[max_path]; int _line; int _column; int _byte;