summaryrefslogtreecommitdiffstats
path: root/editeng/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-15 14:19:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-16 07:54:24 +0100
commit13b89618c49adfd77d184f22e23420a7b6d4678b (patch)
tree089702c613bd099b478fbeb28ba04a09eef6b8b1 /editeng/inc
parentRemoved duplicated include (diff)
downloadcore-13b89618c49adfd77d184f22e23420a7b6d4678b.tar.gz
core-13b89618c49adfd77d184f22e23420a7b6d4678b.zip
use implict conversion operator in TypedWhichId
instead of spreading calls to Which() everywhere. Change-Id: Ie32d106e44f5cb583908eeebe254ab8b8168ae61 Reviewed-on: https://gerrit.libreoffice.org/44760 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/inc')
-rw-r--r--editeng/inc/editdoc.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 542b6d319982..a46330c9badf 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -177,7 +177,7 @@ public:
template<class T>
const T& GetItem( TypedWhichId<T> nWhich ) const
{
- return static_cast<const T&>(GetItem(nWhich.Which()));
+ return static_cast<const T&>(GetItem(sal_uInt16(nWhich)));
}
bool HasItem( sal_uInt16 nWhich ) const;
};