summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-04 15:19:01 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-04 15:19:09 +0200
commitdbd675df91406b0542743fd86d0a0c732aba694a (patch)
tree1636a8a4353af6cf0e41ceff2b3629ec0fa47733 /comphelper/source
parent57d88588841855cc61b485ca1199e6484f6aa826 (diff)
Some "cast from ... to ... loses precision fixes"
Change-Id: Ib1d827bfa224e8708fd1e41b1ad213bcfef9a012
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/numberedcollection.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/numberedcollection.cxx b/comphelper/source/misc/numberedcollection.cxx
index f7f4d122c009..2f3e357f0167 100644
--- a/comphelper/source/misc/numberedcollection.cxx
+++ b/comphelper/source/misc/numberedcollection.cxx
@@ -74,8 +74,8 @@ void NumberedCollection::setUntitledPrefix(const OUString& sPrefix)
if ( ! xComponent.is ())
throw css::lang::IllegalArgumentException (OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1);
- long pComponent = (long) xComponent.get ();
- TNumberedItemHash::const_iterator pIt = m_lComponents.find (pComponent);
+ sal_IntPtr pComponent = (sal_IntPtr) xComponent.get ();
+ TNumberedItemHash::const_iterator pIt = m_lComponents.find (pComponent);
// a) component already exists - return it's number directly
if (pIt != m_lComponents.end())
@@ -150,8 +150,8 @@ void SAL_CALL NumberedCollection::releaseNumberForComponent(const css::uno::Refe
if ( ! xComponent.is ())
throw css::lang::IllegalArgumentException (OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1);
- long pComponent = (long) xComponent.get ();
- TNumberedItemHash::iterator pIt = m_lComponents.find (pComponent);
+ sal_IntPtr pComponent = (sal_IntPtr) xComponent.get ();
+ TNumberedItemHash::iterator pIt = m_lComponents.find (pComponent);
// a) component exists and will be removed
if (pIt != m_lComponents.end())