aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutex.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-23 21:07:14 +0000
committerlloyd <[email protected]>2006-06-23 21:07:14 +0000
commit9f47066cb84e30b49ffbcaf2706d40bc6473288e (patch)
treeb9c29764aa680570d506713415169b310f753199 /src/mutex.cpp
parent4b0a56c4bf0967250a1d36944806a888bad3fdbc (diff)
Fix the constructor of Mutex_State_Error
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()