diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-01-19 13:13:07 +1100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-21 15:38:53 +0000 |
commit | 1d621d363cf966648fc5ed551dbc95de3e70e89c (patch) | |
tree | 639450dfb10cf7166ac79e76b6bac1d74a4a3764 /vcl/source/app/svapp.cxx | |
parent | 2e10f314d0d3c3d159f8140fc9073fc86fbcfa17 (diff) |
Change EnableNoYieldMode(bool) to better names
It makes no sense to disable something via an Enable function.
I have split the function into Enable and Disable functions, and
update the code accordingly.
Conflicts:
include/vcl/svapp.hxx
Change-Id: Ic05d69796f43e802a4a2a16aaca44433b6eaa018
Reviewed-on: https://gerrit.libreoffice.org/7525
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 6d345f376b27..a754856c9608 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -986,10 +986,16 @@ void Application::RemoveIdleHdl( const Link& rLink ) pSVData->maAppData.mpIdleMgr->RemoveIdleHdl( rLink ); } -void Application::EnableNoYieldMode( bool i_bNoYield ) +void Application::EnableNoYieldMode() { ImplSVData* pSVData = ImplGetSVData(); - pSVData->maAppData.mbNoYield = i_bNoYield; + pSVData->maAppData.mbNoYield = true; +} + +void Application::DisableNoYieldMode() +{ + ImplSVData* pSVData = ImplGetSVData(); + pSVData->maAppData.mbNoYield = false; } void Application::AddPostYieldListener( const Link& i_rListener ) |