diff options
author | Mark Page <aptitude@btconnect.com> | 2016-07-13 13:21:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-13 19:17:12 +0000 |
commit | 9641e51cd71d537313f9b238a0bab73701128b3b (patch) | |
tree | 5b9f8ac1006f224d40a093d03793436817cc57e8 /include/sfx2 | |
parent | 595c049afe0aff08ec350100bda5a2528f660a8e (diff) |
Remove SfxInterface::operator[]
This operator can be confusing when reading the SfxSlotPool source
Also this operator could return nullptr that SfxSlotPool doesn't
check or require.
Change-Id: I8d6009ea1b1f18e7022f1e7065c27f31feb02a6a
Reviewed-on: https://gerrit.libreoffice.org/27185
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/objface.hxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx index 0ec0938ad164..babbc9f0464a 100644 --- a/include/sfx2/objface.hxx +++ b/include/sfx2/objface.hxx @@ -43,8 +43,6 @@ friend class SfxSlotPool; bool bSuperClass; // Whether children inherit its toolbars etc std::unique_ptr<SfxInterface_Impl> pImplData; - SfxSlot* operator[]( sal_uInt16 nPos ) const; - public: SfxInterface( const char *pClass, bool bSuperClass, @@ -97,14 +95,6 @@ inline sal_uInt16 SfxInterface::Count() const return nCount; } - -// returns a function by position in the array - -inline SfxSlot* SfxInterface::operator[]( sal_uInt16 nPos ) const -{ - return nPos < nCount? pSlots+nPos: nullptr; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |