diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:28:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:30 +0100 |
commit | 812e5e8ed7c408cb7f2388ab718365354bfc9a41 (patch) | |
tree | 722c1931584651940a725f130f58434c86a480e4 /include | |
parent | 93cf4dcf443c839c90b19dd68ea64bc1f31a2d91 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I8682fee997d8dac254ca431f96172c9aa58c8c06
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/unotext.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx index 9116df63c8fd..d5a8aefc282f 100644 --- a/include/editeng/unotext.hxx +++ b/include/editeng/unotext.hxx @@ -281,7 +281,7 @@ protected: public: // Internal - const ESelection& GetSelection() const throw() { CheckSelection( ((SvxUnoTextRangeBase*)this)->maSelection, mpEditSource->GetTextForwarder() ); return maSelection; }; + const ESelection& GetSelection() const throw() { CheckSelection( const_cast<SvxUnoTextRangeBase*>(this)->maSelection, mpEditSource->GetTextForwarder() ); return maSelection; }; void SetSelection( const ESelection& rSelection ) throw(); void CollapseToStart(void) throw(); |