summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-19 13:21:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-19 13:21:59 +0100
commitcffc082ec77b1511faaaab3397e9acb045b77c5d (patch)
tree6db84acb9062315e86675efa3d4c092759b65a56 /sw
parentb3be89a02c8d90f4620cc16d1e386c6912904bd6 (diff)
loplugin:loopvartoosmall
Change-Id: Ie83c881db64a857bb542ffc8e298f585f3880d73
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 7b831f8eda07..513c8101269b 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <cstddef>
+
#include <swtypes.hxx>
#include <createaddresslistdialog.hxx>
#include <customizeaddresslistdialog.hxx>
@@ -79,7 +83,7 @@ public:
void SetCurrentDataSet(sal_uInt32 nSet);
sal_uInt32 GetCurrentDataSet() const { return m_nCurrentDataSet;}
- void SetCursorTo(sal_uInt32 nElement);
+ void SetCursorTo(std::size_t nElement);
virtual void Resize() override;
};
@@ -310,7 +314,7 @@ IMPL_LINK(SwAddressControl_Impl, EditModifyHdl_Impl, Edit&, rEdit, void)
}
}
-void SwAddressControl_Impl::SetCursorTo(sal_uInt32 nElement)
+void SwAddressControl_Impl::SetCursorTo(std::size_t nElement)
{
if(nElement < m_aEdits.size())
{
@@ -708,7 +712,7 @@ void SwCreateAddressListDialog::Find(const OUString& rSearch, sal_Int32 nColumn)
bool bFound = false;
sal_uInt32 nStart = nCurrent + 1;
sal_uInt32 nEnd = m_pCSVData->aDBData.size();
- sal_uInt32 nElement = 0;
+ std::size_t nElement = 0;
sal_uInt32 nPos = 0;
for(short nTemp = 0; nTemp < 2 && !bFound; nTemp++)
{
@@ -724,7 +728,7 @@ void SwCreateAddressListDialog::Find(const OUString& rSearch, sal_Int32 nColumn)
bFound = -1 != aData[nElement].toAsciiLowerCase().indexOf(sSearch);
if(bFound)
{
- nColumn = nElement;
+ nColumn = nElement; //TODO: std::size_t -> sal_Int32!
break;
}
}