summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-25 21:59:48 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-25 21:59:48 -0200
commit3dbb89e5a39e7811d2fc0c1fbad012c3d565396b (patch)
treec30b07e879ad20c5bded2291296f9633c273ab5e /xmloff/source/meta
parent4228c5542b57b43064bbefb3cc79c4eb51e059d6 (diff)
Fix for fdo43460 Part XLVIII getLength() to isEmpty()
Part XLVIII Modules xmloff (part 2)
Diffstat (limited to 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/xmlmetae.cxx14
-rw-r--r--xmloff/source/meta/xmlmetai.cxx4
-rw-r--r--xmloff/source/meta/xmlversion.cxx4
3 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx
index d7fdbf3f83dd..8a6a850cdee2 100644
--- a/xmloff/source/meta/xmlmetae.cxx
+++ b/xmloff/source/meta/xmlmetae.cxx
@@ -90,7 +90,7 @@ SvXMLMetaExport::GetISODateTimeString( const util::DateTime& rDateTime )
void SvXMLMetaExport::SimpleStringElement( const rtl::OUString& rText,
sal_uInt16 nNamespace, enum XMLTokenEnum eElementName )
{
- if ( rText.getLength() ) {
+ if ( !rText.isEmpty() ) {
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
sal_True, sal_False );
mrExport.Characters( rText );
@@ -102,7 +102,7 @@ void SvXMLMetaExport::SimpleDateTimeElement( const util::DateTime & rDate,
{
if (rDate.Month != 0) { // invalid dates are 0-0-0
rtl::OUString sValue = GetISODateTimeString( rDate );
- if ( sValue.getLength() ) {
+ if ( !sValue.isEmpty() ) {
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
sal_True, sal_False );
mrExport.Characters( sValue );
@@ -161,8 +161,8 @@ void SvXMLMetaExport::_MExport()
{
const lang::Locale aLocale = mxDocProps->getLanguage();
::rtl::OUString sValue = aLocale.Language;
- if (sValue.getLength()) {
- if ( aLocale.Country.getLength() )
+ if (!sValue.isEmpty()) {
+ if ( !aLocale.Country.isEmpty() )
{
sValue += rtl::OUString::valueOf((sal_Unicode)'-');
sValue += aLocale.Country;
@@ -197,7 +197,7 @@ void SvXMLMetaExport::_MExport()
// default target
const ::rtl::OUString sDefTarget = mxDocProps->getDefaultTarget();
- if ( sDefTarget.getLength() )
+ if ( !sDefTarget.isEmpty() )
{
mrExport.AddAttribute( XML_NAMESPACE_OFFICE, XML_TARGET_FRAME_NAME,
sDefTarget );
@@ -216,7 +216,7 @@ void SvXMLMetaExport::_MExport()
// auto-reload
const ::rtl::OUString sReloadURL = mxDocProps->getAutoloadURL();
const sal_Int32 sReloadDelay = mxDocProps->getAutoloadSecs();
- if (sReloadDelay != 0 || sReloadURL.getLength() != 0)
+ if (sReloadDelay != 0 || !sReloadURL.isEmpty())
{
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF,
mrExport.GetRelativeReference( sReloadURL ) );
@@ -233,7 +233,7 @@ void SvXMLMetaExport::_MExport()
// template
const rtl::OUString sTplPath = mxDocProps->getTemplateURL();
- if ( sTplPath.getLength() )
+ if ( !sTplPath.isEmpty() )
{
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE );
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONREQUEST );
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index 70e9712ccaa8..64a7f5883407 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -280,7 +280,7 @@ void SvXMLMetaDocumentContext::setBuildId(::rtl::OUString const& i_rBuildId, con
}
}
- if ( sBuildId.getLength() == 0 )
+ if ( sBuildId.isEmpty() )
{
if ((i_rBuildId.compareToAscii(
RTL_CONSTASCII_STRINGPARAM("StarOffice 7") ) == 0) ||
@@ -297,7 +297,7 @@ void SvXMLMetaDocumentContext::setBuildId(::rtl::OUString const& i_rBuildId, con
}
}
- if ( sBuildId.getLength() ) try
+ if ( !sBuildId.isEmpty() ) try
{
if( xImportInfo.is() )
{
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index fe01b41e8466..0610e7a7edbb 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -275,7 +275,7 @@ sal_Bool XMLVersionContext::ParseISODateTimeString(
nDateTokens++;
pStr++;
}
- if ( nDateTokens > 3 || aDateStr.getLength() == 0 )
+ if ( nDateTokens > 3 || aDateStr.isEmpty() )
bSuccess = sal_False;
else
{
@@ -297,7 +297,7 @@ sal_Bool XMLVersionContext::ParseISODateTimeString(
}
}
- if ( bSuccess && aTimeStr.getLength() > 0 ) // time is optional
+ if ( bSuccess && !aTimeStr.isEmpty() ) // time is optional
{
pStr = aTimeStr.getStr();
sal_Int32 nTimeTokens = 1;