From 130a2baa8307175c27da42ba3ec5a3caf8d799fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 24 Feb 2014 12:27:11 +0100 Subject: error: enumeral and non-enumeral type in conditional expression Change-Id: I30293ac22fb26e0f7c9bfd335ccaa9a2d263d02f --- toolkit/source/controls/unocontrols.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index c342d83cc542..e79c2f38ec40 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -3575,7 +3575,7 @@ void UnoDateFieldControl::setLongFormat( sal_Bool bLong ) throw(uno::RuntimeExce sal_Bool UnoDateFieldControl::isLongFormat() throw(uno::RuntimeException) { - return ( mbLongFormat != TRISTATE_INDET ) ? mbLongFormat : sal_False; + return mbLongFormat == TRISTATE_TRUE; } void UnoDateFieldControl::setEmpty() throw(uno::RuntimeException) -- cgit