From dbd675df91406b0542743fd86d0a0c732aba694a Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Tue, 4 Jun 2013 15:19:01 +0200 Subject: Some "cast from ... to ... loses precision fixes" Change-Id: Ib1d827bfa224e8708fd1e41b1ad213bcfef9a012 --- comphelper/source/misc/numberedcollection.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'comphelper') 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()) -- cgit reoffice-6-4'>distro/cib/libreoffice-6-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/include/vcl
AgeCommit message (Expand)Author
2013-11-07convert vcl/Edit::Impl* methods from xub_StrLen to sal_Int32Noel Grandin
2013-11-01The "source size" of a VCL bitmap is not used for anythingTor Lillqvist
2013-10-29Resolves: rhbz#1021915 force menubar menus to be up/down onlyCaolán McNamara
2013-10-26Seems that <vcl/cvtsvm.hxx> is private to VCL, so move it thereTor Lillqvist
2013-10-26Minor cleanup and comment (un-)translationTor Lillqvist
2013-10-23fixincludeguards.sh: include/vclThomas Arnhold
2013-10-22ImplCalcSize etc can be constCaolán McNamara
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
2013-10-22vcl: mark more Image constructors as "explicit"Michael Stahl
2013-10-22vcl: Image: mark newly added constructor "explicit"Michael Stahl
2013-10-22Resolves: fdo#38838 remove UniStringCaolán McNamara
2013-10-21Simplify further after the kerning pair changesTor Lillqvist
2013-10-21Removed unused kerning stuffKhaled Hosny
2013-10-20fdo#52622 - Reduce copy and paste codeJosé Guilherme Vanz
2013-10-16cleanupThomas Arnhold
2013-10-09Resuscitate old vcl unit tests.Thorsten Behrens
2013-09-30merge queue_layout and queue_resizeCaolán McNamara
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara
2013-09-20Font and ImplLayoutArgs with LanguageTagEike Rathke
2013-09-16Resolves: fdo#69236 route size request to layout widget, not hard-coded valueCaolán McNamara
2013-09-14callcatcher: update unused code listCaolán McNamara
2013-09-09CID#1079151 make it impossible to have an init m_eTypeCaolán McNamara
2013-09-08convert already exists dialog to .uiCaolán McNamara
2013-09-05vcl: MSVC tinderbox can't tell Window from sd::WindowMichael Stahl
2013-09-04Remove unnecessary SystemChildData -> SystemEnvData defineStephan Bergmann
2013-09-03Remove more unused methodsMarcos Paulo de Souza
2013-09-02GSOC work, disable QuickSelectionEngine+ListBox navigation modificationGergo Mocsi
2013-09-01Remove some unused code from unusedcode.easyMarcos Paulo de Souza
2013-08-31fix indentationPhilipp Riemer
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer