Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1d40b59d
Kaydet (Commit)
1d40b59d
authored
Nis 17, 2017
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid 'else' after a return
Change-Id: Ia530aa2fdaa5f6d77180da3139a47407adf9f519
üst
03518d08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
32 deletions
+9
-32
doctemplates.cxx
sfx2/source/doc/doctemplates.cxx
+9
-32
No files found.
sfx2/source/doc/doctemplates.cxx
Dosyayı görüntüle @
1d40b59d
...
@@ -932,8 +932,7 @@ bool SfxDocTplService_Impl::removeContent( const OUString& rContentURL )
...
@@ -932,8 +932,7 @@ bool SfxDocTplService_Impl::removeContent( const OUString& rContentURL )
if
(
Content
::
create
(
rContentURL
,
maCmdEnv
,
comphelper
::
getProcessComponentContext
(),
aContent
)
)
if
(
Content
::
create
(
rContentURL
,
maCmdEnv
,
comphelper
::
getProcessComponentContext
(),
aContent
)
)
return
removeContent
(
aContent
);
return
removeContent
(
aContent
);
else
return
false
;
return
false
;
}
}
...
@@ -2212,8 +2211,7 @@ uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent()
...
@@ -2212,8 +2211,7 @@ uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent()
{
{
if
(
pImp
->
init
()
)
if
(
pImp
->
init
()
)
return
pImp
->
getContent
().
get
();
return
pImp
->
getContent
().
get
();
else
return
nullptr
;
return
nullptr
;
}
}
...
@@ -2221,10 +2219,7 @@ sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName,
...
@@ -2221,10 +2219,7 @@ sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName,
const
OUString
&
TemplateName
,
const
OUString
&
TemplateName
,
const
uno
::
Reference
<
frame
::
XStorable
>&
Storable
)
const
uno
::
Reference
<
frame
::
XStorable
>&
Storable
)
{
{
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
storeTemplate
(
GroupName
,
TemplateName
,
Storable
);
return
pImp
->
storeTemplate
(
GroupName
,
TemplateName
,
Storable
);
else
return
false
;
}
}
...
@@ -2232,20 +2227,14 @@ sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName,
...
@@ -2232,20 +2227,14 @@ sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName,
const
OUString
&
rTemplateName
,
const
OUString
&
rTemplateName
,
const
OUString
&
rSourceURL
)
const
OUString
&
rSourceURL
)
{
{
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
addTemplate
(
rGroupName
,
rTemplateName
,
rSourceURL
);
return
pImp
->
addTemplate
(
rGroupName
,
rTemplateName
,
rSourceURL
);
else
return
false
;
}
}
sal_Bool
SAL_CALL
SfxDocTplService
::
removeTemplate
(
const
OUString
&
rGroupName
,
sal_Bool
SAL_CALL
SfxDocTplService
::
removeTemplate
(
const
OUString
&
rGroupName
,
const
OUString
&
rTemplateName
)
const
OUString
&
rTemplateName
)
{
{
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
removeTemplate
(
rGroupName
,
rTemplateName
);
return
pImp
->
removeTemplate
(
rGroupName
,
rTemplateName
);
else
return
false
;
}
}
...
@@ -2256,28 +2245,19 @@ sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName,
...
@@ -2256,28 +2245,19 @@ sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName,
if
(
rOldName
==
rNewName
)
if
(
rOldName
==
rNewName
)
return
true
;
return
true
;
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
renameTemplate
(
rGroupName
,
rOldName
,
rNewName
);
return
pImp
->
renameTemplate
(
rGroupName
,
rOldName
,
rNewName
);
else
return
false
;
}
}
sal_Bool
SAL_CALL
SfxDocTplService
::
addGroup
(
const
OUString
&
rGroupName
)
sal_Bool
SAL_CALL
SfxDocTplService
::
addGroup
(
const
OUString
&
rGroupName
)
{
{
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
addGroup
(
rGroupName
);
return
pImp
->
addGroup
(
rGroupName
);
else
return
false
;
}
}
sal_Bool
SAL_CALL
SfxDocTplService
::
removeGroup
(
const
OUString
&
rGroupName
)
sal_Bool
SAL_CALL
SfxDocTplService
::
removeGroup
(
const
OUString
&
rGroupName
)
{
{
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
removeGroup
(
rGroupName
);
return
pImp
->
removeGroup
(
rGroupName
);
else
return
false
;
}
}
...
@@ -2287,10 +2267,7 @@ sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName,
...
@@ -2287,10 +2267,7 @@ sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName,
if
(
rOldName
==
rNewName
)
if
(
rOldName
==
rNewName
)
return
true
;
return
true
;
if
(
pImp
->
init
()
)
return
pImp
->
init
()
&&
pImp
->
renameGroup
(
rOldName
,
rNewName
);
return
pImp
->
renameGroup
(
rOldName
,
rNewName
);
else
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment