diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-18 13:56:57 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-18 14:56:38 +0200 |
commit | 9a2ae1d3b297b8137a8384f553ba859c34a12e96 (patch) | |
tree | f31ececc3c43341207395c3a652f6c5c8777638a | |
parent | f65c1c6da922ae94069c45e687be97328d560f34 (diff) |
pointer diff. _is_ the index already
-rw-r--r-- | basic/source/classes/propacc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx index 90532e1f77..69c0e7e686 100644 --- a/basic/source/classes/propacc.cxx +++ b/basic/source/classes/propacc.cxx @@ -120,7 +120,7 @@ sal_Int32 SbPropertyValues::GetIndex_Impl( const ::rtl::OUString &rPropName ) co bsearch( &rPropName, _aPropVals.GetData(), _aPropVals.Count(), sizeof( PropertyValue* ), SbCompare_UString_PropertyValue_Impl ); - return ppPV ? ( (ppPV-_aPropVals.GetData()) / sizeof(ppPV) ) : USHRT_MAX; + return ppPV ? ppPV - _aPropVals.GetData() : USHRT_MAX; } //---------------------------------------------------------------------------- |