diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-13 19:13:55 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-13 19:13:55 -0200 |
commit | ad6ce5e938ce9d78bed9ce6dead5fa087de49c63 (patch) | |
tree | 668b0b73f6aa515e4303b946136c155f9d38ae4e /svtools/source/config | |
parent | 38423e0ad2a8e2a902aeb37391aef0b543c09d68 (diff) |
Fix for fdo43460 Part XXXVII getLength() to isEmpty()
Part XXXVII
Modules
svtools
Diffstat (limited to 'svtools/source/config')
-rw-r--r-- | svtools/source/config/colorcfg.cxx | 2 | ||||
-rw-r--r-- | svtools/source/config/extcolorcfg.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 54f93b04b8bb..7c8d59bf94eb 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -220,7 +220,7 @@ ColorConfig_Impl::~ColorConfig_Impl() void ColorConfig_Impl::Load(const rtl::OUString& rScheme) { rtl::OUString sScheme(rScheme); - if(!sScheme.getLength()) + if(sScheme.isEmpty()) { //detect current scheme name uno::Sequence < ::rtl::OUString > aCurrent(1); diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 8e20a8dac6ae..89a3466ea2e7 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -305,7 +305,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme) // load color settings rtl::OUString sScheme(rScheme); - if(!sScheme.getLength()) + if(sScheme.isEmpty()) { //detect current scheme name uno::Sequence < ::rtl::OUString > aCurrent(1); @@ -325,7 +325,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme) FillComponentColors(aComponentNames,aDisplayNameMap); } - if ( !m_sLoadedScheme.getLength() ) + if ( m_sLoadedScheme.isEmpty() ) m_sLoadedScheme = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("default")); if ( !sScheme.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("default")) ) @@ -338,7 +338,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme) FillComponentColors(aComponentNames,aDisplayNameMap); } } - if ( !bFound && sScheme.getLength() ) + if ( !bFound && !sScheme.isEmpty() ) { AddScheme(sScheme); CommitCurrentSchemeName(); @@ -427,7 +427,7 @@ void ExtendedColorConfig_Impl::Notify( const uno::Sequence<OUString>& /*rProp void ExtendedColorConfig_Impl::Commit() { - if ( !m_sLoadedScheme.getLength() ) + if ( m_sLoadedScheme.isEmpty() ) return; const ::rtl::OUString sColorEntries(RTL_CONSTASCII_USTRINGPARAM("Entries")); const ::rtl::OUString sColor(RTL_CONSTASCII_USTRINGPARAM("/Color")); |