aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mutex.cpp')
-rw-r--r--src/mutex.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mutex.cpp b/src/mutex.cpp
index 074da7e42..5514922b2 100644
--- a/src/mutex.cpp
+++ b/src/mutex.cpp
@@ -36,11 +36,9 @@ Mutex* Mutex_Factory::make()
class Mutex_State_Error : public Internal_Error
{
public:
- Mutex_State_Error(const std::string& where)
- {
- set_msg("Default_Mutex::" + where + ": Mutex is already " +
- where + "ed");
- }
+ Mutex_State_Error(const std::string& where) :
+ Internal_Error("Default_Mutex::" + where + ": " +
+ "Mutex is already " + where + "ed") {}
};
void lock()