loplugin:loopvartoosmall
Change-Id: Ie83c881db64a857bb542ffc8e298f585f3880d73
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sal/config.h>
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
#include <swtypes.hxx>
|
#include <swtypes.hxx>
|
||||||
#include <createaddresslistdialog.hxx>
|
#include <createaddresslistdialog.hxx>
|
||||||
#include <customizeaddresslistdialog.hxx>
|
#include <customizeaddresslistdialog.hxx>
|
||||||
@@ -79,7 +83,7 @@ public:
|
|||||||
|
|
||||||
void SetCurrentDataSet(sal_uInt32 nSet);
|
void SetCurrentDataSet(sal_uInt32 nSet);
|
||||||
sal_uInt32 GetCurrentDataSet() const { return m_nCurrentDataSet;}
|
sal_uInt32 GetCurrentDataSet() const { return m_nCurrentDataSet;}
|
||||||
void SetCursorTo(sal_uInt32 nElement);
|
void SetCursorTo(std::size_t nElement);
|
||||||
virtual void Resize() override;
|
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())
|
if(nElement < m_aEdits.size())
|
||||||
{
|
{
|
||||||
@@ -708,7 +712,7 @@ void SwCreateAddressListDialog::Find(const OUString& rSearch, sal_Int32 nColumn)
|
|||||||
bool bFound = false;
|
bool bFound = false;
|
||||||
sal_uInt32 nStart = nCurrent + 1;
|
sal_uInt32 nStart = nCurrent + 1;
|
||||||
sal_uInt32 nEnd = m_pCSVData->aDBData.size();
|
sal_uInt32 nEnd = m_pCSVData->aDBData.size();
|
||||||
sal_uInt32 nElement = 0;
|
std::size_t nElement = 0;
|
||||||
sal_uInt32 nPos = 0;
|
sal_uInt32 nPos = 0;
|
||||||
for(short nTemp = 0; nTemp < 2 && !bFound; nTemp++)
|
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);
|
bFound = -1 != aData[nElement].toAsciiLowerCase().indexOf(sSearch);
|
||||||
if(bFound)
|
if(bFound)
|
||||||
{
|
{
|
||||||
nColumn = nElement;
|
nColumn = nElement; //TODO: std::size_t -> sal_Int32!
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user