diff options
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/defaultregistry/defaultregistry.cxx | 6 | ||||
-rw-r--r-- | stoc/source/implementationregistration/implreg.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index 37ff4a47b8b4..aff3f149edff 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -822,7 +822,6 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) } Sequence< Reference<XRegistryKey> > retSeq(local + def - len); - bool insert = true; OUString name; sal_Int32 lastIndex; @@ -838,7 +837,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) sal_uInt32 k = local; for (i=0; i < def; i++) { - insert = true; + bool insert = true; for (j=0 ; j < local; j++) { @@ -902,7 +901,6 @@ Sequence< OUString > SAL_CALL NestedKeyImpl::getKeyNames( ) } Sequence<OUString> retSeq(local + def - len); - bool insert = true; for (i=0; i < local; i++) { @@ -912,7 +910,7 @@ Sequence< OUString > SAL_CALL NestedKeyImpl::getKeyNames( ) sal_uInt32 k = local; for (i=0; i < def; i++) { - insert = true; + bool insert = true; for (j=0 ; j < local; j++) { diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index d0627d2cda3a..90d3ce20f684 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -505,13 +505,12 @@ static void deleteUserLink(const Reference < XRegistryKey >& xRootKey, linkName + spool().colon_old ); if (xOldKey.is()) { - bool hasNoImplementations = false; - if (xOldKey->getValueType() == RegistryValueType_ASCIILIST) { Sequence<OUString> implEntries = xOldKey->getAsciiListValue(); sal_Int32 length = implEntries.getLength(); sal_Int32 equals = 0; + bool hasNoImplementations = false; for (sal_Int32 i = 0; i < length; i++) { |