Kaydet (Commit) a3e3fac0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticcall

Change-Id: I0d67b6c155d44e9c9072ef7c3519850c45a51313
üst 30f4a56e
......@@ -98,7 +98,7 @@ BitmapEx StylePresetsPanel::CreatePreview(OUString& aUrl, OUString& aName)
{
SfxMedium aMedium(aUrl, STREAM_STD_READWRITE);
SfxObjectShell* pObjectShell = SfxObjectShell::Current();
SfxObjectShellLock xTemplDoc = pObjectShell->CreateObjectByFactoryName(pObjectShell->GetFactory().GetFactoryName(), SfxObjectCreateMode::ORGANIZER);
SfxObjectShellLock xTemplDoc = SfxObjectShell::CreateObjectByFactoryName(pObjectShell->GetFactory().GetFactoryName(), SfxObjectCreateMode::ORGANIZER);
xTemplDoc->DoInitNew(0);
if (xTemplDoc->LoadFrom(aMedium))
{
......
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