summaryrefslogtreecommitdiff
path: root/include/tools/multisel.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-28 08:58:48 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-07 02:42:30 -0500
commited75aa271956824c89b7c9df2c06e4ad09a74734 (patch)
tree432c17088789736364b2932b9085e5b17a8cc71a /include/tools/multisel.hxx
parent5ca2d1e26513095670b3fd2dce6a464a415cab89 (diff)
create clang plugin to warn about C-style casts
We don't like C-style casts in our nice C++ code Change-Id: I94e7ec90de9275cd6e20c4146d4f3a74bed93c9d Reviewed-on: https://gerrit.libreoffice.org/10367 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/tools/multisel.hxx')
-rw-r--r--include/tools/multisel.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index 83841ce6a377..bac6fe8e8ff6 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -80,9 +80,7 @@ public:
long NextSelected();
size_t GetRangeCount() const { return aSels.size(); }
- const Range& GetRange( size_t nRange ) const {
- return *(const Range*)aSels[nRange];
- }
+ const Range& GetRange( size_t nRange ) const { return *aSels[nRange]; }
};
class TOOLS_DLLPUBLIC StringRangeEnumerator