summaryrefslogtreecommitdiff
path: root/vcl/test
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-22 23:04:19 +0100
committerGert Faller <gertfaller@aliceadsl.fr>2010-11-22 23:04:19 +0100
commit6e8883ba743b7b2031f544bc2f8e08fd5ac04b43 (patch)
tree6dc26d0fbd5d3228f57e714d556be3a0cee9ab38 /vcl/test
parent7d0f24c822b0f8af6b0b5fa82ed6bd288cdebe96 (diff)
RTL_CONSTASCII_USTRINGPARAM in libs-gui 10
Diffstat (limited to 'vcl/test')
-rw-r--r--vcl/test/canvasbitmaptest.cxx2
-rw-r--r--vcl/test/dndtest.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/vcl/test/canvasbitmaptest.cxx b/vcl/test/canvasbitmaptest.cxx
index 51ec6685f0ca..94807c051e59 100644
--- a/vcl/test/canvasbitmaptest.cxx
+++ b/vcl/test/canvasbitmaptest.cxx
@@ -123,7 +123,7 @@ class TestWindow : public Dialog
public:
TestWindow() : Dialog( (Window *) NULL )
{
- SetText( rtl::OUString::createFromAscii( "CanvasBitmap test harness" ) );
+ SetText( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CanvasBitmap test harness")) );
SetSizePixel( Size( 1024, 1024 ) );
EnablePaint( true );
Show();
diff --git a/vcl/test/dndtest.cxx b/vcl/test/dndtest.cxx
index 31bc02ffd8ef..31d7f01b3aa8 100644
--- a/vcl/test/dndtest.cxx
+++ b/vcl/test/dndtest.cxx
@@ -139,7 +139,7 @@ public:
{
DataFlavor df;
- df.MimeType = OUString::createFromAscii( "text/plain;charset=utf-16" );
+ df.MimeType = OUString(RTL_CONSTASCII_USTRINGPARAM("text/plain;charset=utf-16"));
df.DataType = getCppuType( static_cast < OUString * > ( 0 ) );
m_aFlavorList[0] = df;
@@ -163,7 +163,7 @@ void MyApp::Main()
osl_getCommandArg( n, &aArg.pData );
- if( aArg.compareTo( OUString::createFromAscii( "-r" ), 2 ) == 0 )
+ if( aArg.compareTo( OUString(RTL_CONSTASCII_USTRINGPARAM("-r")), 2 ) == 0 )
{
if ( n + 1 < nmax )
osl_getCommandArg( ++n, &aRegistry.pData );
@@ -210,7 +210,7 @@ void MyApp::Main()
MyListBox aListBox( &aMainWin );
aListBox.SetPosSizePixel( 10, 10, 100, 100 );
- aListBox.InsertEntry( OUString::createFromAscii( "TestItem" ));
+ aListBox.InsertEntry( OUString(RTL_CONSTASCII_USTRINGPARAM("TestItem")));
aListBox.Show();
Execute();
@@ -296,7 +296,7 @@ void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEve
printf( "XDragGestureListener::dragGestureRecognized called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dge.DragOriginX, dge.DragOriginY );
Reference< XDragSource > xDragSource( dge.DragSource, UNO_QUERY );
- xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString::createFromAscii( "TestString" ) ), this );
+ xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString(RTL_CONSTASCII_USTRINGPARAM("TestString")) ), this );
printf( "XDragSource::startDrag returned.\n" );
}
@@ -385,7 +385,7 @@ void SAL_CALL MyDragAndDropListener::disposing( const EventObject& ) throw(Runti
// -----------------------------------------------------------------------
MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
- OUString::createFromAscii( "dragging over this box should result in another window id in the drag log." ) )
+ OUString(RTL_CONSTASCII_USTRINGPARAM("dragging over this box should result in another window id in the drag log.")) )
{
Reference< XDropTargetListener > xListener = new MyDragAndDropListener( this );