[Libreoffice-commits] core.git: cppuhelper/source registry/tools
Stephan Bergmann
sbergman at redhat.com
Sun Feb 3 14:07:58 PST 2013
cppuhelper/source/typedescriptionprovider.cxx | 6 +++---
registry/tools/reg2bin.cxx | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 7b235eec105c963173282e1e3f392c64b069902b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Feb 3 23:07:30 2013 +0100
More typos
Change-Id: I7b1bd08d9e5157c4eacb8ee5005c76e93eb32e63
diff --git a/cppuhelper/source/typedescriptionprovider.cxx b/cppuhelper/source/typedescriptionprovider.cxx
index b45cb39..2d19518 100644
--- a/cppuhelper/source/typedescriptionprovider.cxx
+++ b/cppuhelper/source/typedescriptionprovider.cxx
@@ -1025,7 +1025,7 @@ struct Attribute {
rtl::OUString type;
bool bound;
bool readOnly;
- std::vector< rtl::OUString > getExceptions;
+ std::vector< rtl::OUString > getExceptions;
std::vector< rtl::OUString > setExceptions;
};
@@ -2501,7 +2501,7 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName)
for (sal_uInt32 i = 0; i != n; ++i) {
params.push_back(file_->readNameLen(off, &off));
}
- n = file_->read32(off + 1);
+ n = file_->read32(off);
if (n > SAL_MAX_INT32) {
throw css::uno::DeploymentException(
("broken UNOIDL file: too many members of polymorphic"
@@ -2628,7 +2628,7 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName)
getExcs.push_back(file_->readNameLen(off, &off));
}
std::vector< rtl::OUString > setExcs;
- if ((v & 0x02) != 0) {
+ if ((v & 0x02) == 0) {
m = file_->read32(off);
if (m > SAL_MAX_INT32) {
throw css::uno::DeploymentException(
diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx
index d10ad2a..b45580947 100644
--- a/registry/tools/reg2bin.cxx
+++ b/registry/tools/reg2bin.cxx
@@ -1092,7 +1092,7 @@ sal_uInt64 writeMap(
if (j->bound) {
f |= 0x01;
}
- if (!j->readOnly) {
+ if (j->readOnly) {
f |= 0x02;
}
write8(file, f);
More information about the Libreoffice-commits
mailing list