diff options
Diffstat (limited to 'sw/source/ui/vba/vbasystem.cxx')
-rw-r--r-- | sw/source/ui/vba/vbasystem.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/vba/vbasystem.cxx b/sw/source/ui/vba/vbasystem.cxx index d8be0e21276b..368dae6e0ce3 100644 --- a/sw/source/ui/vba/vbasystem.cxx +++ b/sw/source/ui/vba/vbasystem.cxx @@ -87,7 +87,7 @@ uno::Any PrivateProfileStringListener::getValueEvent() { // get the private profile string rtl::OUString sValue; - if(maFileName.getLength()) + if(!maFileName.isEmpty()) { // get key/value from a file Config aCfg( maFileName ); @@ -133,7 +133,7 @@ void PrivateProfileStringListener::setValueEvent( const css::uno::Any& value ) // set the private profile string rtl::OUString aValue; value >>= aValue; - if(maFileName.getLength()) + if(!maFileName.isEmpty()) { // set value into a file Config aCfg( maFileName ); @@ -251,7 +251,7 @@ SwVbaSystem::PrivateProfileString( const rtl::OUString& rFilename, const rtl::OU // FIXME: need to detect whether it is a relative file path // we need to detect if this is a URL, if not then assume its a file path rtl::OUString sFileUrl; - if( rFilename.getLength() ) + if( !rFilename.isEmpty() ) { INetURLObject aObj; aObj.SetURL( rFilename ); |