diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-28 11:33:12 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:46 +0100 |
commit | af0917623ac806e35a88efe8983b16965c92ec0d (patch) | |
tree | 682bddb5494321437a66783e1d0631494305ac9a /src | |
parent | 271c7cabf5e16a1afed560b9f707b3955b3ec725 (diff) | |
download | usdx-af0917623ac806e35a88efe8983b16965c92ec0d.tar.gz usdx-af0917623ac806e35a88efe8983b16965c92ec0d.tar.xz usdx-af0917623ac806e35a88efe8983b16965c92ec0d.zip |
make string constructor argument a constant reference
Diffstat (limited to '')
-rw-r--r-- | src/base/songloading/songloader.hpp | 2 | ||||
-rw-r--r-- | src/utils/base_exception.cpp | 2 | ||||
-rw-r--r-- | src/utils/base_exception.hpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/base/songloading/songloader.hpp b/src/base/songloading/songloader.hpp index bbe7dfcb..57afdefe 100644 --- a/src/base/songloading/songloader.hpp +++ b/src/base/songloading/songloader.hpp @@ -38,7 +38,7 @@ namespace usdx class NoStrategyException : public BaseException { public: - NoStrategyException(std::string message) : BaseException(message) {}; + NoStrategyException(const std::string& message) : BaseException(message) {}; ~NoStrategyException () throw () {}; }; diff --git a/src/utils/base_exception.cpp b/src/utils/base_exception.cpp index e00ba716..6f60c157 100644 --- a/src/utils/base_exception.cpp +++ b/src/utils/base_exception.cpp @@ -28,7 +28,7 @@ namespace usdx { - BaseException::BaseException(std::string message) : message(message) + BaseException::BaseException(const std::string& message) : message(message) { } diff --git a/src/utils/base_exception.hpp b/src/utils/base_exception.hpp index 44f3c2b7..08e4b371 100644 --- a/src/utils/base_exception.hpp +++ b/src/utils/base_exception.hpp @@ -38,7 +38,7 @@ namespace usdx std::string message; protected: - BaseException(std::string message); + BaseException(const std::string& message); public: ~BaseException() throw (); |