diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-23 11:26:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-24 09:52:08 +0200 |
commit | 0bc070587c3ef5dd30975885d8331c337ba9a2da (patch) | |
tree | ecef5773fdf76cb10628e26cc7ae2346110d8a9d /sd/source/ui/app | |
parent | 3e65f5fe662bf66cab65a163b45c55c27aa24c44 (diff) |
simplify SdOptions::StoreConfig
nobody calls it with anything other than the default value
Change-Id: I9c3a975ed7f0e22c58aad7bf733a26f79244ca26
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r-- | sd/source/ui/app/optsitem.cxx | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index 4e8ef7296313..14a3fc018bb4 100644 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -1425,28 +1425,15 @@ SdOptions::~SdOptions() { } -void SdOptions::StoreConfig( sal_uLong nOptionsRange ) -{ - if( nOptionsRange & SD_OPTIONS_LAYOUT ) - SdOptionsLayout::Store(); - - if( nOptionsRange & SD_OPTIONS_CONTENTS ) - SdOptionsContents::Store(); - - if( nOptionsRange & SD_OPTIONS_MISC ) - SdOptionsMisc::Store(); - - if( nOptionsRange & SD_OPTIONS_SNAP ) - SdOptionsSnap::Store(); - - if( nOptionsRange & SD_OPTIONS_ZOOM ) - SdOptionsZoom::Store(); - - if( nOptionsRange & SD_OPTIONS_GRID ) - SdOptionsGrid::Store(); - - if( nOptionsRange & SD_OPTIONS_PRINT ) - SdOptionsPrint::Store(); +void SdOptions::StoreConfig() +{ + SdOptionsLayout::Store(); + SdOptionsContents::Store(); + SdOptionsMisc::Store(); + SdOptionsSnap::Store(); + SdOptionsZoom::Store(); + SdOptionsGrid::Store(); + SdOptionsPrint::Store(); } sal_Int32 SdOptionsMisc::GetDisplay() const |