diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2013-08-16 22:17:44 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2013-08-17 01:52:48 +0300 |
commit | a0161828b8ea4d68fb34f02656b9a4f8604129ab (patch) | |
tree | 2dd2720a75403b28fac781e4da999724cad357e9 /sc/source/ui/view/editsh.cxx | |
parent | 7e7a83b73dad2a9a2c73826f61a81c4c774d2c9d (diff) |
WaE: C4305: 'argument' : truncation from 'int' to 'const bool'
Change-Id: I92729c7272e87c2aede6cd5134c84d17b466e57f
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index 76a9529de885..a4b45a9c1675 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -670,7 +670,17 @@ void ScEditShell::GetState( SfxItemSet& rSet ) if ( pActiveView ) rSet.Put( SfxBoolItem( nWhich, pActiveView->IsInsertMode() ) ); else - rSet.Put( SfxBoolItem( nWhich, 42 ) ); + { + // Here the code used to pass the value 42 and it used + // to "work" without warnings because the SfxBoolItem + // was based on 'sal_Bool', which is actually 'unsigned + // char'. But now it uses actual 'bool', and passing 42 + // for a 'bool' parameter causes a warning at least with + // MSVC. So use 'true'. I really really hope there is + // not code somewhere that retrieves this "boolean" item + // and checks it value for the magic value 42... + rSet.Put( SfxBoolItem( nWhich, true) ); + } } break; |