diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-06-24 22:03:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 11:50:29 +0200 |
commit | 3c5d5ff4e8050b9470a899f618e8c5c2c2481ab5 (patch) | |
tree | 44d71cca302e29dc693d10d493ac0550dc45e780 /include | |
parent | 7562c5f37ca03267da5873143601811bebf6d620 (diff) |
svx: pass struct by const reference ...
and use references instead of pointers for output parameters.
Change-Id: Ib91a821ff84e464639aa6f09a44ba00301f1d783
Reviewed-on: https://gerrit.libreoffice.org/39220
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/textchaincursor.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/svx/textchaincursor.hxx b/include/svx/textchaincursor.hxx index 61e6939701ac..aa56e9d5b2cb 100644 --- a/include/svx/textchaincursor.hxx +++ b/include/svx/textchaincursor.hxx @@ -26,6 +26,8 @@ class SdrObjEditView; class SdrTextObj; class KeyEvent; class SdrOutliner; +enum class CursorChainingEvent; +struct ESelection; class SVX_DLLPUBLIC TextChainCursorManager @@ -37,11 +39,11 @@ public: // Used by HandledKeyEvent and basic building block for handling cursor event void HandleCursorEvent(const CursorChainingEvent aCurEvt, - const ESelection aNewSel); + const ESelection& aNewSel); // To be used after chaining event to deal with some nuisances void HandleCursorEventAfterChaining(const CursorChainingEvent aCurEvt, - const ESelection aNewSel); + const ESelection& aNewSel); private: SdrObjEditView *mpEditView; @@ -52,9 +54,9 @@ private: void impChangeEditingTextObj(SdrTextObj *pTargetTextObj, ESelection aNewSel); void impDetectEvent(const KeyEvent& rKEvt, - CursorChainingEvent *pOutCursorEvt, - ESelection *pOutSel, - bool *bOutHandled); + CursorChainingEvent& rOutCursorEvt, + ESelection& rOutSel, + bool& rOutHandled); }; |