diff options
author | dante <dante19031999@gmail.com> | 2020-12-29 19:58:04 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-07-11 13:43:54 +0200 |
commit | ed12987f28696b51467507b97702cf50835cc850 (patch) | |
tree | cf9126fbf79b04515eb99a71b5d20dfeb95e0253 /sw | |
parent | 685b615ffd9e46d891a653736d2115f4a32e20d1 (diff) |
Remove warning while building
Operator >>= from any does not guarantee initialization, so compiler warns you.
Value defaluted at 0.
Change-Id: Icecc765be73bb653f0167958e319a1417df6ac86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108485
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit edc7a8a372a689802a583092ff0da0f60b6dbf97)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118584
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/config/usrpref.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index 615098813db2..a896acb30c90 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -233,7 +233,7 @@ void SwContentViewConfig::Load() case 23: m_rParent.SetShowChangesInMargin(bSet); break;// "Display/ShowChangesInMargin" case 24: { - sal_Int32 nSet; + sal_Int32 nSet = 0; pValues[nProp] >>= nSet; m_rParent.SetDefaultAnchor(nSet); } |