[Libreoffice-commits] .: starmath/source sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Nov 14 13:17:21 PST 2010
starmath/source/cfgitem.cxx | 2 +-
sw/source/core/graphic/ndgrf.cxx | 4 ++--
sw/source/core/unocore/unoframe.cxx | 2 +-
sw/source/filter/rtf/swparrtf.cxx | 4 ++--
sw/source/filter/xml/xmltexte.cxx | 2 +-
sw/source/ui/utlui/textcontrolcombo.cxx | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit e4bd2720a11b1802dc0a045043ee75ed6e9ef56c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Nov 14 21:03:37 2010 +0000
Misuse of RTL_CONSTASCII_STRINGPARAM instead of RTL_CONSTASCII_USTRINGPARAM
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index c3fb2e4..b202bb7 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -403,7 +403,7 @@ const String SmFontFormatList::GetNewFontFormatId() const
String aRes;
- String aPrefix( RTL_CONSTASCII_STRINGPARAM( "Id" ) );
+ String aPrefix( RTL_CONSTASCII_USTRINGPARAM( "Id" ) );
INT32 nCnt = GetCount();
for (INT32 i = 1; i <= nCnt + 1 && 0 == aRes.Len(); ++i)
{
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index a7cdc9f..3e69022 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -861,7 +861,7 @@ void SwGrfNode::_GetStreamStorageNames( String& rStrmName,
aUserData=aNewStrmName;
}
- String aProt( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.Package:" ) );
+ String aProt( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.Package:" ) );
if( 0 == aUserData.CompareTo( aProt, aProt.Len() ) )
{
// 6.0 (XML) Package
@@ -1212,7 +1212,7 @@ bool SwGrfNode::IsAsyncRetrieveInputStreamPossible() const
{
String sGrfNm;
refLink->GetLinkManager()->GetDisplayNames( refLink, 0, &sGrfNm, 0, 0 );
- String sProtocol( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.pkg:" ) );
+ String sProtocol( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.pkg:" ) );
if ( sGrfNm.CompareTo( sProtocol, sProtocol.Len() ) != 0 )
{
bRet = true;
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 692fa4b..5eafba7 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1505,7 +1505,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
}
else
{
- String sPrefix( RTL_CONSTASCII_STRINGPARAM(sGraphicObjectProtocol) );
+ String sPrefix( RTL_CONSTASCII_USTRINGPARAM(sGraphicObjectProtocol) );
String sId( pGrfNode->GetGrfObj().GetUniqueID(),
RTL_TEXTENCODING_ASCII_US );
(sGrfName = sPrefix) += sId;
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx
index b064a4c..02452b8 100644
--- a/sw/source/filter/rtf/swparrtf.cxx
+++ b/sw/source/filter/rtf/swparrtf.cxx
@@ -3017,7 +3017,7 @@ void SwRTFParser::ReadSectControls( int nToken )
}
if (!aNewSection.mpPageHdFt)
{
- String aName(RTL_CONSTASCII_STRINGPARAM("rtfHdFt"));
+ String aName(RTL_CONSTASCII_USTRINGPARAM("rtfHdFt"));
aName += String::CreateFromInt32(maSegments.size());
sal_uInt16 nPageNo = pDoc->MakePageDesc(aName);
aNewSection.mpPageHdFt = &pDoc->_GetPageDesc(nPageNo);
@@ -3032,7 +3032,7 @@ void SwRTFParser::ReadSectControls( int nToken )
case RTF_HEADERF:
if (!aNewSection.mpTitlePageHdFt)
{
- String aTitle(RTL_CONSTASCII_STRINGPARAM("rtfTitleHdFt"));
+ String aTitle(RTL_CONSTASCII_USTRINGPARAM("rtfTitleHdFt"));
aTitle += String::CreateFromInt32(maSegments.size());
sal_uInt16 nPageNo = pDoc->MakePageDesc(aTitle);
aNewSection.mpTitlePageHdFt = &pDoc->_GetPageDesc(nPageNo);
diff --git a/sw/source/filter/xml/xmltexte.cxx b/sw/source/filter/xml/xmltexte.cxx
index 604bd8d..22d684e 100644
--- a/sw/source/filter/xml/xmltexte.cxx
+++ b/sw/source/filter/xml/xmltexte.cxx
@@ -227,7 +227,7 @@ void SwXMLTextParagraphExport::setTextEmbeddedGraphicURL(
SwGrfNode *pGrfNd = GetNoTxtNode( rPropSet )->GetGrfNode();
if( !pGrfNd->IsGrfLink() )
{
- String aNewURL( RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.Package:") );
+ String aNewURL( RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.Package:") );
aNewURL += String(rURL);
pGrfNd->SetNewStreamName( aNewURL );
diff --git a/sw/source/ui/utlui/textcontrolcombo.cxx b/sw/source/ui/utlui/textcontrolcombo.cxx
index 69c6fbf..6d4d696 100644
--- a/sw/source/ui/utlui/textcontrolcombo.cxx
+++ b/sw/source/ui/utlui/textcontrolcombo.cxx
@@ -63,7 +63,7 @@ void TextControlCombo::Arrange( FixedText& _rFTcomplete, BOOL /*bShow*/ )
nYCtrl += aMetricVals.Height();
// separate text parts
- const String aReplStr( RTL_CONSTASCII_STRINGPARAM( "%POSITION_OF_CONTROL" ) );
+ const String aReplStr( RTL_CONSTASCII_USTRINGPARAM( "%POSITION_OF_CONTROL" ) );
String aTxtBefore( _rFTcomplete.GetText() );
String aTxtAfter;
xub_StrLen nReplPos = aTxtBefore.Search( aReplStr );
More information about the Libreoffice-commits
mailing list