diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/actorsprite.cpp | 5 | ||||
-rw-r--r-- | src/being/localplayer.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 3feaa4d8b..6d783e6f1 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -360,9 +360,8 @@ static const char *cursorSize(const int size) void ActorSprite::initTargetCursor() { - static const std::string targetCursorFile = "%s/target-cursor-%s-%s.xml"; - - const std::string path = branding.getStringValue("guiPath"); + static const std::string targetCursorFile("%s/target-cursor-%s-%s.xml"); + const std::string path(branding.getStringValue("guiPath")); // Load target cursors for (int size = TC_SMALL; size < NUM_TC; size++) diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index e6332300b..f1c4c49e2 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -3526,8 +3526,8 @@ void LocalPlayer::afkRespond(ChatTab *const tab, const std::string &nick) if (mAfkTime == 0 || time < mAfkTime || time - mAfkTime > awayLimitTimer) { - const std::string msg = "*AFK*: " - + config.getStringValue("afkMessage"); + const std::string msg("*AFK*: " + + config.getStringValue("afkMessage")); if (!tab) { |