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
32423f6f
Kaydet (Commit)
32423f6f
authored
Mar 30, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: passing [...] by value, rather pass by reference
Change-Id: Ic733f9b5dcb55bb8120c3652a60300914fab04ea
üst
45cfdae9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
macros_test.hxx
include/unotest/macros_test.hxx
+1
-1
macros_test.cxx
unotest/source/cpp/macros_test.cxx
+8
-8
No files found.
include/unotest/macros_test.hxx
Dosyayı görüntüle @
32423f6f
...
...
@@ -28,7 +28,7 @@ class OOO_DLLPUBLIC_UNOTEST MacrosTest
{
public
:
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
loadFromDesktop
(
const
OUString
&
rURL
,
const
OUString
&
rDocService
=
OUString
(),
c
ss
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
e
xtra_args
=
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
()
);
c
onst
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rE
xtra_args
=
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
()
);
protected
:
css
::
uno
::
Reference
<
css
::
frame
::
XDesktop2
>
mxDesktop
;
...
...
unotest/source/cpp/macros_test.cxx
Dosyayı görüntüle @
32423f6f
...
...
@@ -19,7 +19,7 @@ using namespace css;
namespace
unotest
{
uno
::
Reference
<
css
::
lang
::
XComponent
>
MacrosTest
::
loadFromDesktop
(
const
OUString
&
rURL
,
const
OUString
&
rDocService
,
uno
::
Sequence
<
beans
::
PropertyValue
>
e
xtraArgs
)
uno
::
Reference
<
css
::
lang
::
XComponent
>
MacrosTest
::
loadFromDesktop
(
const
OUString
&
rURL
,
const
OUString
&
rDocService
,
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
rE
xtraArgs
)
{
CPPUNIT_ASSERT_MESSAGE
(
"no desktop"
,
mxDesktop
.
is
());
uno
::
Reference
<
frame
::
XComponentLoader
>
xLoader
=
uno
::
Reference
<
frame
::
XComponentLoader
>
(
mxDesktop
,
uno
::
UNO_QUERY
);
...
...
@@ -39,16 +39,16 @@ uno::Reference<css::lang::XComponent> MacrosTest::loadFromDesktop(const OUString
args
[
1
].
State
=
beans
::
PropertyState_DIRECT_VALUE
;
}
if
(
e
xtraArgs
.
getLength
()
>
0
)
if
(
rE
xtraArgs
.
getLength
()
>
0
)
{
sal_Int32
aSize
=
args
.
getLength
();
args
.
realloc
(
aSize
+
e
xtraArgs
.
getLength
());
for
(
int
i
=
0
;
i
<
e
xtraArgs
.
getLength
();
i
++
)
args
.
realloc
(
aSize
+
rE
xtraArgs
.
getLength
());
for
(
int
i
=
0
;
i
<
rE
xtraArgs
.
getLength
();
i
++
)
{
args
[
aSize
+
i
].
Name
=
e
xtraArgs
[
i
].
Name
;
args
[
aSize
+
i
].
Handle
=
e
xtraArgs
[
i
].
Handle
;
args
[
aSize
+
i
].
Value
=
e
xtraArgs
[
i
].
Value
;
args
[
aSize
+
i
].
State
=
e
xtraArgs
[
i
].
State
;
args
[
aSize
+
i
].
Name
=
rE
xtraArgs
[
i
].
Name
;
args
[
aSize
+
i
].
Handle
=
rE
xtraArgs
[
i
].
Handle
;
args
[
aSize
+
i
].
Value
=
rE
xtraArgs
[
i
].
Value
;
args
[
aSize
+
i
].
State
=
rE
xtraArgs
[
i
].
State
;
}
}
...
...
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