From fad3b1ded1f8a534c09b7f92a1fbe39e9ffd3955 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 17 Apr 2012 09:39:27 +0100 Subject: Don't initialise with temporaries, fix warnings diff --git a/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h b/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h index 26f48cb..42be4f3 100644 --- a/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h +++ b/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Kevin Smith + * Copyright (c) 2010-2012 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ @@ -16,7 +16,7 @@ namespace Swift { public: RequestAddUserDialogUIEvent(const JID& predefinedJID, const std::string& predefinedName) : preJID_(predefinedJID), preName_(predefinedName) {}; - RequestAddUserDialogUIEvent() : preJID_(JID()), preName_(std::string()) {}; + RequestAddUserDialogUIEvent() : preJID_(), preName_() {}; const JID& getPredefinedJID() const { return preJID_; }; const std::string& getPredefinedName() const { return preName_; }; -- cgit v0.10.2-6-g49f6