diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-06-01 01:24:23 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-06-01 13:04:13 +0200 |
commit | 69a8d81b488aaf3014a508cb518f2de3a32076f6 (patch) | |
tree | 943de6055bd242b26390e1cd7cc9342506f50dbc /sw/source | |
parent | 151363ed2e0209e0cb6d78d8e821d23080f2e74b (diff) |
sal_uInt16 to sal_Int32, and use -1 as a special case
Change-Id: Iaf90f96665781d3aa43f1f71802538f54409bd4a
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/inc/hyp.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/lingu/hyp.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/hyp.hxx b/sw/source/uibase/inc/hyp.hxx index f1f144044799..4226ed89adad 100644 --- a/sw/source/uibase/inc/hyp.hxx +++ b/sw/source/uibase/inc/hyp.hxx @@ -42,7 +42,7 @@ protected: virtual bool SpellContinue() SAL_OVERRIDE; virtual void SpellEnd( ) SAL_OVERRIDE; virtual bool SpellMore() SAL_OVERRIDE; - virtual void InsertHyphen( const sal_uInt16 nPos ) SAL_OVERRIDE; // insert hyphen + virtual void InsertHyphen( const sal_Int32 nPos ) SAL_OVERRIDE; // insert hyphen public: SwHyphWrapper( SwView* pVw, diff --git a/sw/source/uibase/lingu/hyp.cxx b/sw/source/uibase/lingu/hyp.cxx index 057bd69d14f2..98dccf7d5e67 100644 --- a/sw/source/uibase/lingu/hyp.cxx +++ b/sw/source/uibase/lingu/hyp.cxx @@ -108,10 +108,10 @@ bool SwHyphWrapper::SpellMore() return false; } -void SwHyphWrapper::InsertHyphen( const sal_uInt16 nPos ) +void SwHyphWrapper::InsertHyphen( const sal_Int32 nPos ) { if( nPos) - SwEditShell::InsertSoftHyph( nPos + 1); // does nPos == 1 really mean + SwEditShell::InsertSoftHyph(nPos + 1); // does nPos == 1 really mean // insert hyphen after first char? // (instead of nPos == 0) else |