summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2010-09-28 17:07:12 +0200
committerVladimir Glazunov <vg@openoffice.org>2010-09-28 17:07:12 +0200
commitc014ee3ca9d4e927559cbb79748dfa6a40482f70 (patch)
tree0e7a45f14abfbcb6155a051fa9a73b9481a550dc /configmgr
parentc593d6114ff384a314b4ad66c479a7c9e7a6daaa (diff)
parente0fdf2225180b54352bdaef9f9a9cab86e689c7f (diff)
CWS-TOOLING: integrate CWS sb126
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/configurationprovider.cxx10
-rw-r--r--configmgr/source/pad.cxx5
-rw-r--r--configmgr/source/pad.hxx2
3 files changed, 6 insertions, 11 deletions
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx
index a89540a881..78d71e73e7 100644
--- a/configmgr/source/configurationprovider.cxx
+++ b/configmgr/source/configurationprovider.cxx
@@ -241,7 +241,7 @@ Service::createInstanceWithArguments(
if (nodepath.getLength() == 0) {
badNodePath();
}
- // For backwards compatibility, allow a notepath that misses the leading
+ // For backwards compatibility, allow a nodepath that misses the leading
// slash:
if (nodepath[0] != '/') {
nodepath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")) + nodepath;
@@ -456,7 +456,8 @@ Factory::createInstanceWithArgumentsAndContext(
" arguments")),
0);
}
- // For backwards compatibility, allow "Locale" in any case:
+ // For backwards compatibility, allow "Locale" and (ignored)
+ // "EnableAsync" in any case:
if (name.equalsIgnoreAsciiCaseAsciiL(
RTL_CONSTASCII_STRINGPARAM("locale")))
{
@@ -471,8 +472,9 @@ Factory::createInstanceWithArgumentsAndContext(
" one, non-empty, string Locale argument")),
0);
}
- } else {
- //TODO
+ } else if (!name.equalsIgnoreAsciiCaseAsciiL(
+ RTL_CONSTASCII_STRINGPARAM("enableasync")))
+ {
throw css::uno::Exception(
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
diff --git a/configmgr/source/pad.cxx b/configmgr/source/pad.cxx
index c8c7218b6d..a8169b271b 100644
--- a/configmgr/source/pad.cxx
+++ b/configmgr/source/pad.cxx
@@ -65,11 +65,6 @@ void Pad::clear() {
buffer_.setLength(0);
}
-bool Pad::is() const {
- OSL_ASSERT(!(span_.is() && buffer_.getLength() != 0));
- return span_.is() || buffer_.getLength() != 0;
-}
-
Span Pad::get() const {
OSL_ASSERT(!(span_.is() && buffer_.getLength() != 0));
if (span_.is()) {
diff --git a/configmgr/source/pad.hxx b/configmgr/source/pad.hxx
index 66a51f4800..9f6fbebcda 100644
--- a/configmgr/source/pad.hxx
+++ b/configmgr/source/pad.hxx
@@ -45,8 +45,6 @@ public:
void clear();
- bool is() const;
-
Span get() const;
private: