[Libreoffice-commits] core.git: sfx2/source

Tomáš Chvátal (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 27 06:08:07 UTC 2019


 sfx2/source/view/viewfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3877328fcea01f24a94fd3debc243cf9f187dee9
Author:     Tomáš Chvátal <tchvatal at suse.com>
AuthorDate: Mon Aug 19 15:35:35 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Tue Aug 27 08:06:09 2019 +0200

    Use get_value_or instead of value_or
    
    The old boost does not understand the value_or function
    
    Change-Id: I575d04eaab62294e1b402cd8c991c0daa1854271
    Reviewed-on: https://gerrit.libreoffice.org/77728
    Reviewed-by: Tomáš Chvátal <tchvatal at suse.com>
    Tested-by: Tomáš Chvátal <tchvatal at suse.com>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index bad7d74672d0..07d3549e750d 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1287,7 +1287,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
                     OUString sSetupVersion = utl::ConfigManager::getProductVersion();
                     sal_Int32 iCurrent = sSetupVersion.getToken(0,'.').toInt32() * 10 + sSetupVersion.getToken(1,'.').toInt32();
                     OUString sLastVersion
-                        = officecfg::Setup::Product::ooSetupLastVersion::get().value_or("0.0");
+                        = officecfg::Setup::Product::ooSetupLastVersion::get().get_value_or("0.0");
                     sal_Int32 iLast = sLastVersion.getToken(0,'.').toInt32() * 10 + sLastVersion.getToken(1,'.').toInt32();
                     if ((iCurrent > iLast) && !Application::IsHeadlessModeEnabled() && !bIsUITest)
                     {


More information about the Libreoffice-commits mailing list