From 1b529df25fa6de1918bee0c3edb18f81d63b1366 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 19 May 2014 09:04:11 +0300 Subject: [PATCH] Fix 'non-const lvalue reference cannot bind to a temporary' Change-Id: Ic308a281f7b16c8924658be792216d3aba4444c5 --- vcl/qa/cppunit/wmf/wmfimporttest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcl/qa/cppunit/wmf/wmfimporttest.cxx b/vcl/qa/cppunit/wmf/wmfimporttest.cxx index 5204007d6fad..b12fbe9b2a3a 100644 --- a/vcl/qa/cppunit/wmf/wmfimporttest.cxx +++ b/vcl/qa/cppunit/wmf/wmfimporttest.cxx @@ -29,9 +29,9 @@ class WmfTest : public test::BootstrapFixture, public XmlTestTools { OUString maDataUrl; - OUString getFullUrl(OUString& sFileName) + OUString getFullUrl(const char * sFileName) { - return getURLFromSrc(maDataUrl) + sFileName; + return getURLFromSrc(maDataUrl) + OUString(sFileName, strlen(sFileName), RTL_TEXTENCODING_UTF8); } public: