[Libreoffice-commits] .: sd/source slideshow/test
David Tardon
dtardon at kemper.freedesktop.org
Sat Nov 13 00:12:53 PST 2010
sd/source/ui/slideshow/slideshow.cxx | 2 +-
sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx | 4 ++--
sd/source/ui/unoidl/sddetect.cxx | 4 ++--
sd/source/ui/view/Outliner.cxx | 2 +-
slideshow/test/demoshow.cxx | 4 ++--
5 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 8ac8ef62e9d6c6137a7805753cbda3d6b3664cab
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Nov 13 09:12:41 2010 +0100
RTL_CONSTASCII_USTRINGPARAM for impress
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 10ec1e0..2e2d49c 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -787,7 +787,7 @@ void SAL_CALL SlideShow::end() throw(RuntimeException)
if( xProvider.is() )
{
util::URL aURL;
- aURL.Complete = ::rtl::OUString::createFromAscii(".uno:CloseFrame");
+ aURL.Complete = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:CloseFrame"));
uno::Reference< frame::XDispatch > xDispatch(
xProvider->queryDispatch(
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
index 67a139d..24c536e 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
@@ -189,8 +189,8 @@ Image TemplatePreviewProvider::operator() (
{
uno::Reference<io::XStream> xThumbnailCopy (
xStorage->cloneStreamElement(
- ::rtl::OUString::createFromAscii(
- "thumbnail.png")));
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "thumbnail.png"))));
if (xThumbnailCopy.is())
xIStream = xThumbnailCopy->getInputStream();
}
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index dcd7b2c..23666d0 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -531,14 +531,14 @@ UNOSEQUENCE< UNOOUSTRING > SdFilterDetect::impl_getStaticSupportedServiceNames()
{
UNOMUTEXGUARD aGuard( UNOMUTEX::getGlobalMutex() );
UNOSEQUENCE< UNOOUSTRING > seqServiceNames( 1 );
- seqServiceNames.getArray() [0] = UNOOUSTRING::createFromAscii( "com.sun.star.frame.ExtendedTypeDetection" );
+ seqServiceNames.getArray() [0] = UNOOUSTRING(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.frame.ExtendedTypeDetection" ));
return seqServiceNames ;
}
/* Helper for XServiceInfo */
UNOOUSTRING SdFilterDetect::impl_getStaticImplementationName()
{
- return UNOOUSTRING::createFromAscii( "com.sun.star.comp.draw.FormatDetector" );
+ return UNOOUSTRING(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.draw.FormatDetector" ));
}
/* Helper for registry */
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 7637f43..b7f33ae 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -216,7 +216,7 @@ Outliner::Outliner( SdDrawDocument* pDoc, USHORT nMode )
Any aAny;
aAny = aLinguConfig.GetProperty(
- rtl::OUString::createFromAscii( UPN_IS_SPELL_AUTO ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( UPN_IS_SPELL_AUTO )) );
aAny >>= bOnlineSpell;
}
catch( ... )
diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx
index 0aec46b..be3edd1 100644
--- a/slideshow/test/demoshow.cxx
+++ b/slideshow/test/demoshow.cxx
@@ -556,8 +556,8 @@ void DemoApp::Main()
// Create UCB.
uno::Sequence< uno::Any > aArgs( 2 );
- aArgs[ 0 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL );
- aArgs[ 1 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY2_OFFICE );
+ aArgs[ 0 ] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( UCB_CONFIGURATION_KEY1_LOCAL ));
+ aArgs[ 1 ] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( UCB_CONFIGURATION_KEY2_OFFICE ));
::ucbhelper::ContentBroker::initialize( xFactory, aArgs );
DemoWindow pWindow;
More information about the Libreoffice-commits
mailing list