From 4bf95c4c31dd871065d4042028a4b3ae476dab70 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 8 Mar 2013 14:11:35 +0100 Subject: make use of startsWith() Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba Reviewed-by: Fridrich Strba --- vcl/test/dndtest.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/test') diff --git a/vcl/test/dndtest.cxx b/vcl/test/dndtest.cxx index c2756dcfbf41..83c98872f0ad 100644 --- a/vcl/test/dndtest.cxx +++ b/vcl/test/dndtest.cxx @@ -152,7 +152,7 @@ void MyApp::Main() osl_getCommandArg( n, &aArg.pData ); - if( aArg.compareTo( OUString("-r"), 2 ) == 0 ) + if( aArg.startsWith( "-r" ) ) { if ( n + 1 < nmax ) osl_getCommandArg( ++n, &aRegistry.pData ); -- cgit