diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-12-30 15:03:16 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-26 17:57:29 +0000 |
commit | b7ad3991628b0dee40bb1f823ca90b5c71b49939 (patch) | |
tree | 0ac7f4b1d909ee233470847a4692aeba3bbfc111 | |
parent | 7649e53d6f45cdb3216067f0674700a44b0c74d3 (diff) |
long to sal_Int32
Change-Id: I03c3d93c03239ae39bb3078ffabe71276ec37d25
Reviewed-on: https://gerrit.libreoffice.org/7658
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 7e0270362ca0..1f9f35dd2933 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1768,7 +1768,7 @@ ContentAttribs::~ContentAttribs() { } -SvxTabStop ContentAttribs::FindTabStop( long nCurPos, sal_uInt16 nDefTab ) +SvxTabStop ContentAttribs::FindTabStop( sal_Int32 nCurPos, sal_uInt16 nDefTab ) { const SvxTabStopItem& rTabs = (const SvxTabStopItem&) GetItem( EE_PARA_TABS ); for ( sal_uInt16 i = 0; i < rTabs.Count(); i++ ) @@ -1780,7 +1780,7 @@ SvxTabStop ContentAttribs::FindTabStop( long nCurPos, sal_uInt16 nDefTab ) // Determine DefTab ... SvxTabStop aTabStop; - long x = nCurPos / nDefTab + 1; + const sal_Int32 x = nCurPos / nDefTab + 1; aTabStop.GetTabPos() = nDefTab * x; return aTabStop; } diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index f7100ef033ca..1c8bdf24cdbe 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -182,7 +182,7 @@ public: ContentAttribs( const ContentAttribs& ); ~ContentAttribs(); // only for larger Tabs - SvxTabStop FindTabStop( long nCurPos, sal_uInt16 nDefTab ); + SvxTabStop FindTabStop( sal_Int32 nCurPos, sal_uInt16 nDefTab ); SfxItemSet& GetItems() { return aAttribSet; } const SfxItemSet& GetItems() const { return aAttribSet; } const SfxStyleSheet* GetStyleSheet() const { return pStyle; } |