diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-05 12:10:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-05 12:10:11 +0200 |
commit | c05105151b730b5d1014475b7b89857bc486629f (patch) | |
tree | d076160e5cf04bdc166a8f82a701618ee3e663bc /sd | |
parent | 8dbe1223156ca184da70318b07c0247a2946f270 (diff) |
Avoid undef out-of-range value -1 for XPropertyListType enum
Change-Id: If2dedafe6d8517eba4dd4921d15dd2d969d181dd
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<beans::PropertyValue> 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 { |