diff options
Diffstat (limited to 'jvmfwk/source/elements.cxx')
-rw-r--r-- | jvmfwk/source/elements.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx index 696d6b616d75..96ef388933d4 100644 --- a/jvmfwk/source/elements.cxx +++ b/jvmfwk/source/elements.cxx @@ -48,7 +48,7 @@ namespace jfw { OString getElement(OString const & docPath, - xmlChar const * pathExpression, bool bThrowIfEmpty) + xmlChar const * pathExpression) { //Prepare the xml document and context OSL_ASSERT(!docPath.isEmpty()); @@ -70,10 +70,9 @@ OString getElement(OString const & docPath, OString sValue; if (xmlXPathNodeSetIsEmpty(pathObj->nodesetval)) { - if (bThrowIfEmpty) - throw FrameworkException( - JFW_E_ERROR, - "[Java framework] Error in function getElement (elements.cxx)"); + throw FrameworkException( + JFW_E_ERROR, + "[Java framework] Error in function getElement (elements.cxx)"); } else { @@ -85,7 +84,7 @@ OString getElement(OString const & docPath, OString getElementUpdated() { return getElement(jfw::getVendorSettingsPath(), - reinterpret_cast<xmlChar const *>("/jf:javaSelection/jf:updated/text()"), true); + reinterpret_cast<xmlChar const *>("/jf:javaSelection/jf:updated/text()")); } void createSettingsStructure(xmlDoc * document, bool * bNeedsSave) |