From c05105151b730b5d1014475b7b89857bc486629f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 5 Aug 2014 12:10:11 +0200 Subject: Avoid undef out-of-range value -1 for XPropertyListType enum Change-Id: If2dedafe6d8517eba4dd4921d15dd2d969d181dd --- sd/source/ui/unoidl/UnoDocumentSettings.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index e792db8d4d30..094c08d7a2b1 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -281,7 +281,7 @@ static XPropertyListType getTypeOfName( const OUString &aName ) if( aName.equalsAscii( aURLPropertyNames[i].pName ) ) return aURLPropertyNames[i].t; } - return (XPropertyListType) -1; + return UNKNOWN_XPROPERTYLISTTYPE; } static OUString getNameOfType( XPropertyListType t ) @@ -306,7 +306,7 @@ uno::Sequence for( sal_Int32 i = 0; i < aConfigProps.getLength(); i++ ) { XPropertyListType t = getTypeOfName( aConfigProps[i].Name ); - if (t < 0) + if (t == UNKNOWN_XPROPERTYLISTTYPE) aRet[nRet++] = aConfigProps[i]; else { -- cgit