summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/brew/ImageBrew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/brew/ImageBrew.cpp')
-rw-r--r--WebCore/platform/graphics/brew/ImageBrew.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/brew/ImageBrew.cpp b/WebCore/platform/graphics/brew/ImageBrew.cpp
index f5c855d..b574b0a 100644
--- a/WebCore/platform/graphics/brew/ImageBrew.cpp
+++ b/WebCore/platform/graphics/brew/ImageBrew.cpp
@@ -36,13 +36,13 @@
#include "SharedBuffer.h"
#include <wtf/text/CString.h>
-#include <wtf/text/WTFString.h>
+#include <wtf/text/StringConcatenate.h>
namespace WebCore {
PassRefPtr<Image> Image::loadPlatformResource(const char *name)
{
- String resourcePath = homeDirectoryPath() + String::format("res/%s.png", name);
+ String resourcePath = makeString(homeDirectoryPath(), "res/", name, ".png");
RefPtr<SharedBuffer> buffer = SharedBuffer::createWithContentsOfFile(resourcePath.utf8().data());
if (!buffer)