diff options
Diffstat (limited to 'jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx index 1c3503244480..a63bfcf2dc57 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx @@ -150,7 +150,7 @@ bool VendorBase::initialize(vector<pair<OUString, OUString> > props) } else if (!bAccess && sAccessProperty.equals(i->first)) { - if (i->second.getLength() > 0) + if (!i->second.isEmpty()) { m_bAccessibility = true; bAccess = true; @@ -164,7 +164,7 @@ bool VendorBase::initialize(vector<pair<OUString, OUString> > props) return false; // init m_sRuntimeLibrary - OSL_ASSERT(m_sHome.getLength()); + OSL_ASSERT(!m_sHome.isEmpty()); //call virtual function to get the possible paths to the runtime library. int size = 0; @@ -190,7 +190,7 @@ bool VendorBase::initialize(vector<pair<OUString, OUString> > props) return false; // init m_sLD_LIBRARY_PATH - OSL_ASSERT(m_sHome.getLength()); + OSL_ASSERT(!m_sHome.isEmpty()); size = 0; char const * const * arLDPaths = getLibraryPaths( & size); vector<OUString> ld_paths = getVectorFromCharArray(arLDPaths, size); @@ -263,7 +263,7 @@ bool VendorBase::supportsAccessibility() const bool VendorBase::needsRestart() const { - if (getLibraryPaths().getLength() > 0) + if (!getLibraryPaths().isEmpty()) return true; return false; } |