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 /include/vcl | |
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 'include/vcl')
-rw-r--r-- | include/vcl/svapp.hxx | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 0432a1755572..8e7b053961fb 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -469,17 +469,26 @@ public: "No yield" mode prevents @Yield from waiting for events. @remarks This was originally implemented in OOo bug 98792 to improve - Impress slideshows. For some reason, to \em disable no yield mode, you - call on EnableNoYieldMode + Impress slideshows. - @param i_bNoYield If set to false, then "no yield" mode is turned off. - If set to true, then "no yield" mode is turned on. + @see DisableNoYieldMode, Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, + GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + AddPostYieldListener, RemovePostYieldListener + */ + static void EnableNoYieldMode(); - @see Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, + /** @Brief Disables "no yield" mode + + "No yield" mode prevents @Yield from waiting for events. + + @remarks This was originally implemented in OOo bug 98792 to improve + Impress slideshows. + + @see EnableNoYieldMode, Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, AddPostYieldListener, RemovePostYieldListener */ - static void EnableNoYieldMode( bool i_bNoYield ); + static void DisableNoYieldMode(); /** Add a listener for yield events |