diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 14:57:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 20:38:36 +0000 |
commit | 673c932eebfe959ddf2629904398e73b2c2b6542 (patch) | |
tree | 2bd1173c61926cdc37797f7a30ba301fbbdbb4bb /xmloff | |
parent | 8ca6fe608822d780e4e9eb5280568d4591f7e1af (diff) |
avoid implicit cast
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/DocumentSettingsContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/XMLBase64ImportContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextFrameContext.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx index f30ec6113b..eeb50258cf 100644 --- a/xmloff/source/core/DocumentSettingsContext.cxx +++ b/xmloff/source/core/DocumentSettingsContext.cxx @@ -599,7 +599,7 @@ void XMLConfigItemContext::Characters( const ::rtl::OUString& rChars ) if( sTrimmedChars.getLength() ) { rtl::OUString sChars; - if( msValue ) + if( msValue.getLength() ) { sChars = msValue; sChars += sTrimmedChars; diff --git a/xmloff/source/core/XMLBase64ImportContext.cxx b/xmloff/source/core/XMLBase64ImportContext.cxx index a06a6608ea..a32b1e8ce5 100644 --- a/xmloff/source/core/XMLBase64ImportContext.cxx +++ b/xmloff/source/core/XMLBase64ImportContext.cxx @@ -70,7 +70,7 @@ void XMLBase64ImportContext::Characters( const ::rtl::OUString& rChars ) if( sTrimmedChars.getLength() ) { OUString sChars; - if( sBase64CharsLeft ) + if( sBase64CharsLeft.getLength() ) { sChars = sBase64CharsLeft; sChars += sTrimmedChars; diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index 0d29c662e7..8d0049371c 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -1276,7 +1276,7 @@ void SdXMLStylesContext::EndElement() // void SdXMLStylesContext::SetMasterPageStyles(SdXMLMasterPageContext& rMaster) const { - UniString sPrefix(rMaster.GetDisplayName(), (sal_uInt16)rMaster.GetDisplayName().getLength()); + UniString sPrefix(rMaster.GetDisplayName()); sPrefix += sal_Unicode('-'); if(GetSdImport().GetLocalDocStyleFamilies().is() && GetSdImport().GetLocalDocStyleFamilies()->hasByName(rMaster.GetDisplayName())) try diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index b8798e78fe..892c080671 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -1207,7 +1207,7 @@ void XMLTextFrameContext_Impl::Characters( const OUString& rChars ) if( bOwnBase64Stream && xBase64Stream.is() ) { OUString sChars; - if( sBase64CharsLeft ) + if( sBase64CharsLeft.getLength() ) { sChars = sBase64CharsLeft; sChars += sTrimmedChars; |