summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/source/sheet/xspreadsheets2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/sheet/xspreadsheets2.cxx b/test/source/sheet/xspreadsheets2.cxx
index d9d78b600060..aa010d375f59 100644
--- a/test/source/sheet/xspreadsheets2.cxx
+++ b/test/source/sheet/xspreadsheets2.cxx
@@ -326,10 +326,10 @@ void XSpreadsheets2::importSheetToCopy()
bool XSpreadsheets2::isExternalReference(const OUString& aDestContent, const OUString& aSrcContent )
{
OUString aStart("'file://");
- const sal_Char* sSrcContent = OUStringToOString( aSrcContent, RTL_TEXTENCODING_UTF8 ).getStr();
- return (aDestContent.endsWithIgnoreAsciiCaseAsciiL(sSrcContent, aSrcContent.getLength()) // same cell address
- && aDestContent.indexOf(aStart)==0 // starts with 'file://
+ CPPUNIT_ASSERT(aDestContent.startsWith(aStart));
+
+ return (aDestContent.endsWithIgnoreAsciiCase(aSrcContent, NULL) // same cell address
&& aDestContent.indexOf(aSrcFileName)>0); // contains source file name
}