Kaydet (Commit) 7eaaf96e authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Simplify code

Change-Id: Ib22c4f628042458cab937c27224505489c67da2e
Reviewed-on: https://gerrit.libreoffice.org/64024Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 12877c3e
...@@ -1294,19 +1294,15 @@ bool PackageManagerImpl::synchronizeAddedExtensions( ...@@ -1294,19 +1294,15 @@ bool PackageManagerImpl::synchronizeAddedExtensions(
ActivePackages::Entries id2temp( m_activePackagesDB->getEntries() ); ActivePackages::Entries id2temp( m_activePackagesDB->getEntries() );
//check if the folder exist at all. The shared extension folder //check if the folder exist at all. The shared extension folder
//may not exist for a normal user. //may not exist for a normal user.
bool bOk=true;
try try
{ {
bOk = create_ucb_content( create_ucb_content(nullptr, m_activePackages_expanded,
nullptr, m_activePackages_expanded, Reference<css::ucb::XCommandEnvironment>(), false); Reference<css::ucb::XCommandEnvironment>(), false);
} }
catch (const css::ucb::ContentCreationException&) catch (const css::ucb::ContentCreationException&)
{ {
bOk = false;
}
if (!bOk)
return bModified; return bModified;
}
::ucbhelper::Content tempFolder( m_activePackages_expanded, xCmdEnv, m_xComponentContext ); ::ucbhelper::Content tempFolder( m_activePackages_expanded, xCmdEnv, m_xComponentContext );
Reference<sdbc::XResultSet> xResultSet( Reference<sdbc::XResultSet> xResultSet(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment