Use OUString::boolean

Change-Id: I8989fcc18cd0f0b28ef6da5c3c3d7f87429b569b
This commit is contained in:
Stephan Bergmann 2017-01-06 09:37:00 +01:00
parent 28180c40a6
commit d289b56c65

View File

@ -857,7 +857,7 @@ static OUString lcl_serializeForDisplay( const Reference<XXPathObject>& 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() + "\"";