diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-27 22:48:17 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-28 11:17:55 +0200 |
commit | 6f9f28f8e122fac74ffbc93814f30ca43cca92a0 (patch) | |
tree | 184d83c17ea40357cf4a09536fa434d9f9a20dc9 | |
parent | bd479676f275dd96df497a5098951ab45165335d (diff) |
Return value (sal_uInt16/size_t) is never used
Change-Id: I6342a407878e24e671615b0c12a9badcfc774f37
-rw-r--r-- | sw/source/uibase/inc/wrtsh.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtundo.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx index 2d835ec6cbfd..2ba573a4c0ca 100644 --- a/sw/source/uibase/inc/wrtsh.hxx +++ b/sw/source/uibase/inc/wrtsh.hxx @@ -361,7 +361,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)(); void Do( DoType eDoType, sal_uInt16 nCnt = 1 ); OUString GetDoString( DoType eDoType ) const; OUString GetRepeatString() const; - sal_uInt16 GetDoStrings( DoType eDoType, SfxStringListItem& rStrLstItem ) const; + void GetDoStrings( DoType eDoType, SfxStringListItem& rStrLstItem ) const; // search and replace sal_uLong SearchPattern(const com::sun::star::util::SearchOptions& rSearchOpt, diff --git a/sw/source/uibase/wrtsh/wrtundo.cxx b/sw/source/uibase/wrtsh/wrtundo.cxx index e8851d119f5a..9b70e25acb59 100644 --- a/sw/source/uibase/wrtsh/wrtundo.cxx +++ b/sw/source/uibase/wrtsh/wrtundo.cxx @@ -114,7 +114,7 @@ OUString SwWrtShell::GetDoString( DoType eDoType ) const return SvtResId( nResStr ).toString() + aUndoStr; } -sal_uInt16 SwWrtShell::GetDoStrings( DoType eDoType, SfxStringListItem& rStrs ) const +void SwWrtShell::GetDoStrings( DoType eDoType, SfxStringListItem& rStrs ) const { SwUndoComments_t comments; switch( eDoType ) @@ -135,7 +135,6 @@ sal_uInt16 SwWrtShell::GetDoStrings( DoType eDoType, SfxStringListItem& rStrs ) buf += comments[i] + "\n"; } rStrs.SetString(buf); - return static_cast<sal_uInt16>(comments.size()); } OUString SwWrtShell::GetRepeatString() const |