[Libreoffice-commits] .: extensions/source
Gert Faller
gfaller at kemper.freedesktop.org
Mon Nov 29 14:11:45 PST 2010
extensions/source/plugin/win/winmgr.cxx | 2 +-
extensions/source/propctrlr/formcomponenthandler.cxx | 2 +-
extensions/source/scanner/sane.cxx | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 6a36010f7848a9649890b352411adc48653cea98
Author: Gert Faller <gertfaller at aliceadsl.fr>
Date: Mon Nov 29 23:10:23 2010 +0100
RTL_CONSTASCII_USTRINGPARAM in components 7
diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx
index d29c328..fb30040 100644
--- a/extensions/source/plugin/win/winmgr.cxx
+++ b/extensions/source/plugin/win/winmgr.cxx
@@ -422,7 +422,7 @@ Sequence< PluginDescription > XPluginManager_Impl::impl_getPluginDescriptions(vo
rDescr.Description = aComment;
sal_Int32 nPos = 0, nLen = aExtToken.getLength();
- OUString aExtensions( OUString::createFromAscii( nLen ? "*." : "*.*" ) );
+ OUString aExtensions(nLen ? RTL_CONSTASCII_USTRINGPARAM( "*.") : RTL_CONSTASCII_USTRINGPARAM( "*.*" ) );
for ( ; nPos < nLen; ++nPos )
{
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index c0e5a07..ea9298c 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -1424,7 +1424,7 @@ namespace pcr
aDescriptor.HasSecondaryButton = sal_True;
bool bIsDataProperty = ( nPropertyUIFlags & PROP_FLAG_DATA_PROPERTY ) != 0;
- aDescriptor.Category = ::rtl::OUString::createFromAscii( bIsDataProperty ? "Data" : "General" );
+ aDescriptor.Category = bIsDataProperty ? ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Data")) : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("General"));
return aDescriptor;
}
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx
index ee9bc63..c75458c 100644
--- a/extensions/source/scanner/sane.cxx
+++ b/extensions/source/scanner/sane.cxx
@@ -187,17 +187,17 @@ Sane::~Sane()
void Sane::Init()
{
- ::rtl::OUString sSaneLibName( ::rtl::OUString::createFromAscii( "libsane" SAL_DLLEXTENSION ) );
+ ::rtl::OUString sSaneLibName( RTL_CONSTASCII_USTRINGPARAM( "libsane" SAL_DLLEXTENSION ) );
pSaneLib = osl_loadModule( sSaneLibName.pData, SAL_LOADMODULE_LAZY );
if( ! pSaneLib )
{
- sSaneLibName = ::rtl::OUString::createFromAscii( "libsane" SAL_DLLEXTENSION ".1" );
+ sSaneLibName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "libsane" SAL_DLLEXTENSION ".1" ));
pSaneLib = osl_loadModule( sSaneLibName.pData, SAL_LOADMODULE_LAZY );
}
// try reasonable places that might not be in the library search path
if( ! pSaneLib )
{
- ::rtl::OUString sSaneLibSystemPath( ::rtl::OUString::createFromAscii( "/usr/local/lib/libsane" SAL_DLLEXTENSION ) );
+ ::rtl::OUString sSaneLibSystemPath( RTL_CONSTASCII_USTRINGPARAM( "/usr/local/lib/libsane" SAL_DLLEXTENSION ) );
osl_getFileURLFromSystemPath( sSaneLibSystemPath.pData, &sSaneLibName.pData );
pSaneLib = osl_loadModule( sSaneLibName.pData, SAL_LOADMODULE_LAZY );
}
More information about the Libreoffice-commits
mailing list