From 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 13:48:24 +0300 Subject: improve a bit strings declaration. --- src/being/actorsprite.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/being/actorsprite.cpp') 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++) -- cgit v1.2.3-70-g09d2