diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index 50cdf8254fb4..80442cc91ee6 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -857,7 +857,7 @@ static OUString lcl_serializeForDisplay( const Reference& xResult switch( xResult->getObjectType() ) { case XPathObjectType_XPATH_BOOLEAN: - return xResult->getBoolean() ? OUString("true") : OUString("false"); + return OUString::boolean(xResult->getBoolean()); case XPathObjectType_XPATH_STRING: return "\"" + xResult->getString() + "\"";