summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slideshow/test/demoshow.cxx2
-rw-r--r--svx/source/dialog/svxruler.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx
index 86f861ca653f..11ce065702ff 100644
--- a/slideshow/test/demoshow.cxx
+++ b/slideshow/test/demoshow.cxx
@@ -491,7 +491,7 @@ sal_uInt16 DemoApp::Exception( sal_uInt16 nError )
switch( nError & EXC_MAJORTYPE )
{
case EXC_RSCNOTLOADED:
- Abort( String::CreateFromAscii( "Error: could not load language resources.\nPlease check your installation.\n" ) );
+ Abort( "Error: could not load language resources.\nPlease check your installation.\n" );
break;
}
return 0;
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index e9b3add4c949..117642eb3aad 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -166,7 +166,7 @@ void RulerDebugWindow::AddDebugText(const sal_Char* pDescription, const Stri
pParent = pParent->GetParent();
pDebugWindow = new RulerDebugWindow(pParent);
}
- String sContent(String::CreateFromAscii(pDescription));
+ OUString sContent( OUString::createFromAscii(pDescription) );
sContent += rText;
sal_uInt16 nPos = pDebugWindow->GetLBox().InsertEntry(sContent);
pDebugWindow->GetLBox().SelectEntryPos(nPos);