summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appcfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r--sfx2/source/appl/appcfg.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index 25ff74c2b866..86d02a620df4 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -401,8 +401,9 @@ sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet )
if (rSet.Put(
SfxUInt16Item(
rPool.GetWhich(SID_INET_PROXY_TYPE),
- officecfg::Inet::Settings::ooInetProxyType::get(
- comphelper::getProcessComponentContext()))))
+ (officecfg::Inet::Settings::ooInetProxyType::get(
+ comphelper::getProcessComponentContext()).
+ get_value_or(0)))))
{
bRet = true;
}
@@ -421,8 +422,9 @@ sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet )
if (rSet.Put(
SfxInt32Item(
rPool.GetWhich(SID_INET_HTTP_PROXY_PORT),
- officecfg::Inet::Settings::ooInetHTTPProxyPort::get(
- comphelper::getProcessComponentContext()))))
+ (officecfg::Inet::Settings::ooInetHTTPProxyPort::get(
+ comphelper::getProcessComponentContext()).
+ get_value_or(0)))))
{
bRet = true;
}
@@ -441,8 +443,9 @@ sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet )
if (rSet.Put(
SfxInt32Item(
rPool.GetWhich(SID_INET_FTP_PROXY_PORT),
- officecfg::Inet::Settings::ooInetFTPProxyPort::get(
- comphelper::getProcessComponentContext()))))
+ (officecfg::Inet::Settings::ooInetFTPProxyPort::get(
+ comphelper::getProcessComponentContext()).
+ get_value_or(0)))))
{
bRet = true;
}