[Libreoffice-commits] .: stoc/source
stoc/source/security/lru_cache.h |1 + 1 file changed, 1 insertion(+) New commits: commit 2ca0ab44b4c0f028aa246c28da8fbff0c79a87b4 Author: Stephan Bergmann sberg...@redhat.com Date: Sun Jan 15 22:55:08 2012 +0100 Clang -Wunused-variable. diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h index d4b5a8e..6853a37 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -242,6 +242,7 @@ inline void lru_cache t_key, t_val, t_hashKey, t_equalKey ::set( #ifdef __CACHE_DIAGNOSE OSL_ENSURE( insertion.second, ### inserting new cache entry failed?! ); #endif +(void) insertion; // avoid warnings } else { ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: stoc/source
stoc/source/defaultregistry/defaultregistry.cxx | 18 +++--- stoc/source/implementationregistration/implreg.cxx| 16 +++--- stoc/source/invocation/invocation.cxx |4 - stoc/source/javavm/javavm.cxx | 20 +++ stoc/source/loader/dllcomponentloader.cxx |2 stoc/source/proxy_factory/proxyfac.cxx|2 stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx |2 stoc/source/registry_tdprovider/tdcomp.cxx|2 stoc/source/registry_tdprovider/tdef.cxx |2 stoc/source/registry_tdprovider/tdiface.cxx |4 - stoc/source/registry_tdprovider/tdservice.cxx |4 - stoc/source/security/access_controller.cxx| 10 +-- stoc/source/security/file_policy.cxx | 10 +-- stoc/source/security/permissions.cxx |4 - stoc/source/servicemanager/servicemanager.cxx |4 - stoc/source/simpleregistry/simpleregistry.cxx |2 stoc/source/simpleregistry/textualservices.cxx| 26 +- stoc/source/tdmanager/tdmgr.cxx |2 stoc/source/tdmanager/tdmgr_check.cxx |2 stoc/source/uriproc/ExternalUriReferenceTranslator.cxx|4 - stoc/source/uriproc/UriReference.cxx | 16 +++--- stoc/source/uriproc/UriReferenceFactory.cxx | 23 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx |7 -- stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx |8 +-- 24 files changed, 95 insertions(+), 99 deletions(-) New commits: commit 71dc235aba9597c3485a791a319a34e4258138db Author: Olivier Hallot olivier.hal...@alta.org.br Date: Thu Jan 12 17:01:19 2012 -0200 Fix for fdo43460 Part XXXV getLength() to isEmpty() Part XXXV Modules stoc diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index b80167a..da291d2 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -276,7 +276,7 @@ OUString NestedKeyImpl::computeName(const OUString name) return m_defaultKey-getResolvedName(name); } -if ( resLocalName.getLength() 0 m_pRegistry-m_defaultReg-isValid() ) +if ( !resLocalName.isEmpty() m_pRegistry-m_defaultReg-isValid() ) { ReferenceXRegistryKey localRoot(m_pRegistry-m_localReg-getRootKey()); ReferenceXRegistryKey defaultRoot(m_pRegistry-m_defaultReg-getRootKey()); @@ -289,7 +289,7 @@ OUString NestedKeyImpl::computeName(const OUString name) { count--; -if (resLocalName.getLength() == 0 || resDefaultName.getLength() == 0) +if (resLocalName.isEmpty() || resDefaultName.isEmpty()) throw InvalidRegistryException(); resLocalName = localRoot-getResolvedName(resDefaultName); @@ -683,7 +683,7 @@ Reference XRegistryKey SAL_CALL NestedKeyImpl::openKey( const OUString aKeyN OUString resolvedName = computeName(aKeyName); -if ( resolvedName.getLength() == 0 ) +if ( resolvedName.isEmpty() ) throw InvalidRegistryException(); ReferenceXRegistryKey localKey, defaultKey; @@ -719,7 +719,7 @@ Reference XRegistryKey SAL_CALL NestedKeyImpl::createKey( const OUString aKe OUString resolvedName = computeName(aKeyName); -if ( resolvedName.getLength() == 0 ) +if ( resolvedName.isEmpty() ) throw InvalidRegistryException(); if ( m_localKey.is() m_localKey-isValid() ) @@ -788,7 +788,7 @@ void SAL_CALL NestedKeyImpl::deleteKey( const OUString rKeyName ) { OUString resolvedName = computeName(rKeyName); -if ( resolvedName.getLength() == 0 ) +if ( resolvedName.isEmpty() ) { throw InvalidRegistryException(); } @@ -969,7 +969,7 @@ sal_Bool SAL_CALL NestedKeyImpl::createLink( const OUString aLinkName, const OU resolvedName = computeName(linkName); -if ( resolvedName.getLength() == 0 ) +if ( resolvedName.isEmpty() ) { throw InvalidRegistryException(); } @@ -1023,7 +1023,7 @@ void SAL_CALL NestedKeyImpl::deleteLink( const OUString rLinkName ) resolvedName = computeName(linkName); -if ( resolvedName.getLength() == 0 ) +if ( resolvedName.isEmpty() ) { throw InvalidRegistryException(); } @@ -1067,7 +1067,7 @@ OUString SAL_CALL NestedKeyImpl::getLinkTarget( const OUString rLinkName )
[Libreoffice-commits] .: stoc/source
stoc/source/simpleregistry/textualservices.cxx |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit ba713b5add1dfbcd17f8e6c14561dd3589a3db72 Author: Olivier Hallot olivier.hal...@alta.org.br Date: Thu Jan 12 19:33:28 2012 -0200 Fix mistake in type OUStringBuffer Fix mistake in method for type OUStringBuffer diff --git a/stoc/source/simpleregistry/textualservices.cxx b/stoc/source/simpleregistry/textualservices.cxx index 611d0ea..37540c8 100644 --- a/stoc/source/simpleregistry/textualservices.cxx +++ b/stoc/source/simpleregistry/textualservices.cxx @@ -422,7 +422,7 @@ rtl::OUString pathToString(std::vector rtl::OUString const path) { buf.append(sal_Unicode('/')); buf.append(*i); } -if (buf.isEmpty()) { +if (buf.getLength() == 0) { buf.append(sal_Unicode('/')); } return buf.makeStringAndClear(); ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: stoc/source stoc/test
stoc/source/implementationregistration/implreg.cxx |6 +++--- stoc/source/invocation/invocation.cxx |2 +- stoc/source/javaloader/javaloader.cxx |2 +- stoc/source/javavm/javavm.cxx |8 stoc/source/loader/dllcomponentloader.cxx |2 +- stoc/source/registry_tdprovider/functiondescription.cxx |2 +- stoc/source/registry_tdprovider/methoddescription.cxx |2 +- stoc/source/registry_tdprovider/tdiface.cxx |4 ++-- stoc/source/security/access_controller.cxx |2 +- stoc/source/servicemanager/servicemanager.cxx |6 +++--- stoc/source/simpleregistry/textualservices.cxx |2 +- stoc/source/tdmanager/tdmgr.cxx |8 stoc/source/uriproc/UriReferenceFactory.cxx |2 +- stoc/test/excomp/excomp.cxx |2 +- stoc/test/javavm/jvm_interaction/interactionhandler.cxx | 10 +- stoc/test/javavm/testjavavm.cxx |2 +- stoc/test/security/test_security.cxx|4 ++-- stoc/test/testconv.cxx |6 +++--- stoc/test/testcorefl.cxx|2 +- stoc/test/testiadapter.cxx |8 stoc/test/testintrosp.cxx |8 stoc/test/testproxyfac.cxx |4 ++-- stoc/test/testregistry.cxx |2 +- stoc/test/testsmgr2.cxx |2 +- stoc/test/testsmgr_cpnt.cxx |2 +- 25 files changed, 50 insertions(+), 50 deletions(-) New commits: commit c936e5062770ba100c2eddd7889b51d271c6c73c Author: Takeshi Abe t...@fixedpoint.jp Date: Tue Dec 27 00:12:38 2011 +0900 catch exception by constant reference diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 69435a7..9fb148c 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -1025,7 +1025,7 @@ static void insert_singletons( buf.makeStringAndClear(), Reference XInterface () ); } } -catch (container::NoSuchElementException exc) +catch (const container::NoSuchElementException exc) { throw RuntimeException( OUSTR(cannot get service type description: ) + exc.Message, @@ -1564,7 +1564,7 @@ void ImplementationRegistration::prepareRegister( { throw; } -catch( InvalidRegistryException e ) +catch( const InvalidRegistryException e ) { OUStringBuffer buf; buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( @@ -1575,7 +1575,7 @@ void ImplementationRegistration::prepareRegister( throw CannotRegisterImplementationException( buf.makeStringAndClear(), Reference XInterface () ); } -catch( MergeConflictException e ) +catch( const MergeConflictException e ) { OUStringBuffer buf; buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 33496c6..fa034e6 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -614,7 +614,7 @@ void Invocation_Impl::setValue( const OUString PropertyName, const Any Value ) { throw; } -catch (Exception exc) +catch (const Exception exc) { throw InvocationTargetException( OUString( RTL_CONSTASCII_USTRINGPARAM(exception occurred in setValue(): ) ) + diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index b30df67..62e4a1c 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -417,7 +417,7 @@ css::uno::ReferenceXInterface SAL_CALL JavaComponentLoader_CreateInstance(cons pStaticRef = new css::uno::Reference XInterface ( xRet ); } } -catch(RuntimeException runtimeException) { +catch(const RuntimeException runtimeException) { OString message = OUStringToOString(runtimeException.Message, RTL_TEXTENCODING_ASCII_US); osl_trace(javaloader - could not init javaloader cause of %s, message.getStr()); throw; diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 33d8280..502031d 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -549,7 +549,7 @@ void initVMConfiguration( try {