[Libreoffice-commits] core.git: svx/source

dilekuzulmez dilekuzulmez at gmail.com
Wed Apr 12 14:32:04 UTC 2017


 svx/source/form/fmview.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ef5757ab06743fc56d5bf74d7244edf01acfa842
Author: dilekuzulmez <dilekuzulmez at gmail.com>
Date:   Sun Apr 9 20:06:53 2017 +0300

    tdf#96505 Get rid of cargo cult long integer literals
    
    Change-Id: I67984bfbeffd2d69103b7665d953fa3b1ff03397
    Reviewed-on: https://gerrit.libreoffice.org/36316
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index c94ba7c8e7d1..3adf31d8a34c 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -368,7 +368,7 @@ void FmFormView::ActivateControls(SdrPageView* pPageView)
     if (!pPageView)
         return;
 
-    for (sal_uInt32 i = 0L; i < pPageView->PageWindowCount(); ++i)
+    for (sal_uInt32 i = 0; i < pPageView->PageWindowCount(); ++i)
     {
         const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(i);
         pImpl->addWindow(rPageWindow);
@@ -381,7 +381,7 @@ void FmFormView::DeactivateControls(SdrPageView* pPageView)
     if( !pPageView )
         return;
 
-    for (sal_uInt32 i = 0L; i < pPageView->PageWindowCount(); ++i)
+    for (sal_uInt32 i = 0; i < pPageView->PageWindowCount(); ++i)
     {
         const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(i);
         pImpl->removeWindow(rPageWindow.GetControlContainer() );
@@ -428,7 +428,7 @@ void FmFormView::InsertControlContainer(const Reference< css::awt::XControlConta
         SdrPageView* pPageView = GetSdrPageView();
         if( pPageView )
         {
-            for( sal_uInt32 i = 0L; i < pPageView->PageWindowCount(); i++ )
+            for( sal_uInt32 i = 0; i < pPageView->PageWindowCount(); i++ )
             {
                 const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(i);
 


More information about the Libreoffice-commits mailing list