diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-25 12:49:17 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 11:37:37 +0000 |
commit | 883481fd200510f5ae62e7ab7cd18f7d925c2c47 (patch) | |
tree | e33af672348ab9a9719f1b49184edfbb46f21f03 /basctl | |
parent | a3abc602578270582ab7d8df9ef34ef9503234de (diff) |
Improve TabBar return types
DeactivatePage() goes from returning long to returning bool.
StartRenaming goes from returning long to returning bool.
AllowRenaming goes from returning long to returning a
constant from a new enum.
Change-Id: Ib87e8d7ceb4e23846547257b358ca4dfd41eb6ca
Reviewed-on: https://gerrit.libreoffice.org/9161
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastypes.cxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index 784de8749843..7da4f1797840 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -543,7 +543,7 @@ void TabBar::Command( const CommandEvent& rCEvt ) } } -long TabBar::AllowRenaming() +TabBarAllowRenamingReturnCode TabBar::AllowRenaming() { bool const bValid = IsValidSbxName(GetEditText()); diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index fbdf3d98183d..0d0db7e94072 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -122,7 +122,7 @@ protected: virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; - virtual long AllowRenaming() SAL_OVERRIDE; + virtual TabBarAllowRenamingReturnCode AllowRenaming() SAL_OVERRIDE; virtual void EndRenaming() SAL_OVERRIDE; public: |