summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-18 13:57:48 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-18 14:56:38 +0200
commitc10f1ec5ba6f36e436537e278a19dfcb394d6f65 (patch)
tree19beefc68103f99435212f4875f41890d2dc8cc0
parent9a2ae1d3b297b8137a8384f553ba859c34a12e96 (diff)
pointer diff. _is_ the index already
-rw-r--r--basic/source/classes/propacc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index 69c0e7e686..110558431d 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -239,7 +239,7 @@ sal_Int32 PropertySetInfoImpl::GetIndex_Impl( const ::rtl::OUString &rPropName )
bsearch( &rPropName, _aProps.getConstArray(), _aProps.getLength(),
sizeof( Property ),
SbCompare_UString_Property_Impl );
- return pP ? sal::static_int_cast<sal_Int32>( (pP-_aProps.getConstArray()) / sizeof(pP) ) : -1;
+ return pP ? sal::static_int_cast<sal_Int32>( pP - _aProps.getConstArray() ) : -1;
}
Sequence< Property > PropertySetInfoImpl::getProperties(void) throw()