diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-01-22 12:27:45 +0100 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:08 +0000 |
commit | ddd4a787ebde1b47e5ddfbd5995e2a0fe6b22ee2 (patch) | |
tree | 2d21321016748c17ade9f358ffaf150a9b253c77 /include | |
parent | 0e10b34342bd7b94b69f2eac8c9b1df89a2725f3 (diff) |
Idle: Inserted static cast
Change-Id: I4cfbb53763001854d37fbcd304e77e65279173b6
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/idle.hxx | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx index 6c40ca3dbe89..ef6d7b5e2f8c 100644 --- a/include/vcl/idle.hxx +++ b/include/vcl/idle.hxx @@ -28,41 +28,16 @@ struct ImplIdleData; struct ImplSVData; enum class IdlePriority { - VCL_IDLE_PRIORITY_HIGHEST, - VCL_IDLE_PRIORITY_HIGH, - VCL_IDLE_PRIORITY_REPAINT, - VCL_IDLE_PRIORITY_RESIZE, - VCL_IDLE_PRIORITY_MEDIUM, - VCL_IDLE_PRIORITY_LOW, - VCL_IDLE_PRIORITY_LOWER, - VCL_IDLE_PRIORITY_LOWEST + VCL_IDLE_PRIORITY_HIGHEST = 0, + VCL_IDLE_PRIORITY_HIGH = 1, + VCL_IDLE_PRIORITY_REPAINT = 2, + VCL_IDLE_PRIORITY_RESIZE = 3, + VCL_IDLE_PRIORITY_MEDIUM = 3, + VCL_IDLE_PRIORITY_LOW = 4, + VCL_IDLE_PRIORITY_LOWER = 5, + VCL_IDLE_PRIORITY_LOWEST = 6 }; -inline sal_Int32 convertToInt( IdlePriority ePriority ) -{ - switch (ePriority) - { - case IdlePriority::VCL_IDLE_PRIORITY_HIGHEST: - return 0; - case IdlePriority::VCL_IDLE_PRIORITY_HIGH: - return 1; - case IdlePriority::VCL_IDLE_PRIORITY_REPAINT: - return 2; - case IdlePriority::VCL_IDLE_PRIORITY_RESIZE: - return 3; - case IdlePriority::VCL_IDLE_PRIORITY_MEDIUM: - return 3; - case IdlePriority::VCL_IDLE_PRIORITY_LOW: - return 4; - case IdlePriority::VCL_IDLE_PRIORITY_LOWER: - return 5; - case IdlePriority::VCL_IDLE_PRIORITY_LOWEST: - return 6; - } - - return 42; // Should not happen -} - class VCL_DLLPUBLIC Idle { protected: |