[Libreoffice-commits] .: linguistic/source
Gert Faller
gfaller at kemper.freedesktop.org
Fri Nov 19 11:01:01 PST 2010
linguistic/source/convdic.cxx | 2 +-
linguistic/source/convdiclist.cxx | 2 +-
linguistic/source/gciterator.cxx | 2 +-
linguistic/source/grammarchecker.cxx | 6 +++---
linguistic/source/lngsvcmgr.cxx | 8 ++++----
5 files changed, 10 insertions(+), 10 deletions(-)
New commits:
commit 2e98555e6ac3c281e2a70bc7f9a218a88935064d
Author: Gert Faller <gertfaller at aliceadsl.fr>
Date: Fri Nov 19 20:00:25 2010 +0100
TL_CONSTASCII_USTRINGPARAM in libs core 22
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index 5f86bf4..f8210eb 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -305,7 +305,7 @@ void ConvDic::Save()
{
xSaxWriter = uno::Reference< io::XActiveDataSource >(
xServiceFactory->createInstance(
- OUString::createFromAscii( "com.sun.star.xml.sax.Writer" ) ), UNO_QUERY );
+ OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer")) ), UNO_QUERY );
}
catch (uno::Exception &)
{
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index 9fe5755..ca187b5 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -320,7 +320,7 @@ void SAL_CALL ConvDicNameContainer::removeByName( const OUString& rName )
{
::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ),
uno::Reference< ::com::sun::star::ucb::XCommandEnvironment > () );
- aCnt.executeCommand( OUString::createFromAscii( "delete" ), makeAny( sal_Bool( sal_True ) ) );
+ aCnt.executeCommand( OUString(RTL_CONSTASCII_USTRINGPARAM("delete")), makeAny( sal_Bool( sal_True ) ) );
}
catch( ::com::sun::star::ucb::CommandAbortedException& )
{
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index ffb6159..90caf97 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -792,7 +792,7 @@ sal_Int32 GrammarCheckingIterator::GetSuggestedEndOfSentence(
uno::Reference< lang::XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
if ( xMSF.is() )
xBreakIterator = uno::Reference < i18n::XBreakIterator >( xMSF->createInstance(
- ::rtl::OUString::createFromAscii("com.sun.star.i18n.BreakIterator") ), uno::UNO_QUERY );
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.BreakIterator")) ), uno::UNO_QUERY );
}
sal_Int32 nTextLen = rText.getLength();
sal_Int32 nEndPosition = nTextLen;
diff --git a/linguistic/source/grammarchecker.cxx b/linguistic/source/grammarchecker.cxx
index 2830a8d..5a625df 100644
--- a/linguistic/source/grammarchecker.cxx
+++ b/linguistic/source/grammarchecker.cxx
@@ -163,10 +163,10 @@ uno::Sequence< linguistic2::SingleGrammarError > GrammarChecker::GrammarChecking
Error_t aError;
uno::Sequence< OUString > aSuggestion(1);
OUString *pSeggestion = aSuggestion.getArray();
- pSeggestion[0] = OUString::createFromAscii("Modified");
+ pSeggestion[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("Modified"));
- aError[OUString::createFromAscii("GrammarError")] = aSuggestion;
- aError[OUString::createFromAscii("Grammar Error")] = aSuggestion;
+ aError[OUString(RTL_CONSTASCII_USTRINGPARAM("GrammarError"))] = aSuggestion;
+ aError[OUString(RTL_CONSTASCII_USTRINGPARAM("Grammar Error"))] = aSuggestion;
typedef std::vector< linguistic2::SingleGrammarError> ErrorVector_t;
ErrorVector_t aErrorVector;
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index cba6cd8..5a96bd5 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -1795,7 +1795,7 @@ uno::Sequence< OUString > SAL_CALL
OUString *pNames = aNames.getArray();
if ( 0 == rServiceName.compareToAscii( SN_SPELLCHECKER ) )
{
- OUString aNode( OUString::createFromAscii( "ServiceManager/SpellCheckerList" ));
+ OUString aNode( RTL_CONSTASCII_USTRINGPARAM("ServiceManager/SpellCheckerList"));
const uno::Sequence< OUString > aNodeEntries( GetNodeNames( aNode ) );
if (lcl_SeqHasString( aNodeEntries, aCfgLocale ))
{
@@ -1810,7 +1810,7 @@ uno::Sequence< OUString > SAL_CALL
}
else if ( 0 == rServiceName.compareToAscii( SN_GRAMMARCHECKER ) )
{
- OUString aNode( OUString::createFromAscii( "ServiceManager/GrammarCheckerList" ));
+ OUString aNode( RTL_CONSTASCII_USTRINGPARAM("ServiceManager/GrammarCheckerList"));
const uno::Sequence< OUString > aNodeEntries( GetNodeNames( aNode ) );
if (lcl_SeqHasString( aNodeEntries, aCfgLocale ))
{
@@ -1825,7 +1825,7 @@ uno::Sequence< OUString > SAL_CALL
}
else if ( 0 == rServiceName.compareToAscii( SN_HYPHENATOR ) )
{
- OUString aNode( OUString::createFromAscii( "ServiceManager/HyphenatorList" ));
+ OUString aNode( RTL_CONSTASCII_USTRINGPARAM("ServiceManager/HyphenatorList"));
const uno::Sequence< OUString > aNodeEntries( GetNodeNames( aNode ) );
if (lcl_SeqHasString( aNodeEntries, aCfgLocale ))
{
@@ -1840,7 +1840,7 @@ uno::Sequence< OUString > SAL_CALL
}
else if ( 0 == rServiceName.compareToAscii( SN_THESAURUS ) )
{
- OUString aNode( OUString::createFromAscii( "ServiceManager/ThesaurusList" ));
+ OUString aNode( RTL_CONSTASCII_USTRINGPARAM("ServiceManager/ThesaurusList"));
const uno::Sequence< OUString > aNodeEntries( GetNodeNames( aNode ) );
if (lcl_SeqHasString( aNodeEntries, aCfgLocale ))
{
More information about the Libreoffice-commits
mailing list