summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/rtfexport.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-04 08:57:19 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-04 09:11:51 +0000
commit4e444871a4c9d819c136b383c81b7f7df386a78d (patch)
treee13952b0da7c2d615380b26d9df1e56dd7d6f20d /sw/source/filter/ww8/rtfexport.cxx
parentb62e6b011a3c9a340353546b73ff2eda0e793215 (diff)
Use std::size_t
And include <cstddef> where necessary. Change-Id: Icc1208528d6a8b04375d55ccbf3cd6ef046b454f Reviewed-on: https://gerrit.libreoffice.org/23796 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/filter/ww8/rtfexport.cxx')
-rw-r--r--sw/source/filter/ww8/rtfexport.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index 6ce10997629f..1752e3c99f3c 100644
--- a/sw/source/filter/ww8/rtfexport.cxx
+++ b/sw/source/filter/ww8/rtfexport.cxx
@@ -253,7 +253,7 @@ void RtfExport::WriteRevTab()
// RTF always seems to use Unknown as the default first entry
GetRedline(OUString("Unknown"));
- for (size_t i = 0; i < m_pDoc->getIDocumentRedlineAccess().GetRedlineTable().size(); ++i)
+ for (std::size_t i = 0; i < m_pDoc->getIDocumentRedlineAccess().GetRedlineTable().size(); ++i)
{
const SwRangeRedline* pRedl = m_pDoc->getIDocumentRedlineAccess().GetRedlineTable()[ i ];
@@ -262,7 +262,7 @@ void RtfExport::WriteRevTab()
// Now write the table
Strm().WriteChar('{').WriteCharPtr(OOO_STRING_SVTOOLS_RTF_IGNORE).WriteCharPtr(OOO_STRING_SVTOOLS_RTF_REVTBL).WriteChar(' ');
- for (size_t i = 0; i < m_aRedlineTable.size(); ++i)
+ for (std::size_t i = 0; i < m_aRedlineTable.size(); ++i)
{
const OUString* pAuthor = GetRedline(i);
Strm().WriteChar('{');
@@ -394,7 +394,7 @@ void RtfExport::WriteMainText()
std::vector< std::pair<OString, OString> > aProperties;
aProperties.push_back(std::make_pair<OString, OString>("shapeType", "1"));
aProperties.push_back(std::make_pair<OString, OString>("fillColor", OString::number(msfilter::util::BGRToRGB(oBrush->GetColor().GetColor()))));
- for (size_t i = 0; i < aProperties.size(); ++i)
+ for (std::size_t i = 0; i < aProperties.size(); ++i)
{
Strm().WriteCharPtr("{" OOO_STRING_SVTOOLS_RTF_SP "{");
Strm().WriteCharPtr(OOO_STRING_SVTOOLS_RTF_SN " ");
@@ -536,14 +536,14 @@ void RtfExport::WriteUserProps()
void RtfExport::WritePageDescTable()
{
// Write page descriptions (page styles)
- size_t nSize = m_pDoc->GetPageDescCnt();
+ std::size_t nSize = m_pDoc->GetPageDescCnt();
if (!nSize)
return;
Strm().WriteCharPtr(SAL_NEWLINE_STRING);
m_bOutPageDescs = true;
Strm().WriteChar('{').WriteCharPtr(OOO_STRING_SVTOOLS_RTF_IGNORE).WriteCharPtr(OOO_STRING_SVTOOLS_RTF_PGDSCTBL);
- for (size_t n = 0; n < nSize; ++n)
+ for (std::size_t n = 0; n < nSize; ++n)
{
const SwPageDesc& rPageDesc = m_pDoc->GetPageDesc(n);
@@ -554,7 +554,7 @@ void RtfExport::WritePageDescTable()
OutPageDescription(rPageDesc, false, false);
// search for the next page description
- size_t i = nSize;
+ std::size_t i = nSize;
while (i)
if (rPageDesc.GetFollow() == &m_pDoc->GetPageDesc(--i))
break;
@@ -670,7 +670,7 @@ void RtfExport::ExportDocument_Impl()
if (pSet)
{
- size_t nPosInDoc;
+ std::size_t nPosInDoc;
pSttPgDsc = static_cast<const SwFormatPageDesc*>(&pSet->Get(RES_PAGEDESC));
if (!pSttPgDsc->GetPageDesc())
pSttPgDsc = nullptr;
@@ -1183,7 +1183,7 @@ void RtfExport::OutColorTable()
InsColor(pItem->GetColorValue());
}
- for (size_t n = 0; n < m_aColTable.size(); ++n)
+ for (std::size_t n = 0; n < m_aColTable.size(); ++n)
{
const Color& rCol = m_aColTable[ n ];
if (n || COL_AUTO != rCol.GetColor())