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
1455a378
Kaydet (Commit)
1455a378
authored
Eki 31, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use RTL_CONSTASCII_USTRINGPARAM avoiding possible ternary operator confusion
üst
17b2cadb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
SwXMLTextBlocks1.cxx
sw/source/core/swg/SwXMLTextBlocks1.cxx
+10
-13
No files found.
sw/source/core/swg/SwXMLTextBlocks1.cxx
Dosyayı görüntüle @
1455a378
...
...
@@ -53,7 +53,7 @@
#define STREAM_STGREAD ( STREAM_READ | STREAM_SHARE_DENYWRITE | STREAM_NOCREATE )
#define STREAM_STGWRITE ( STREAM_READ | STREAM_WRITE | STREAM_SHARE_DENYWRITE )
sal_Char
__FAR_DATA
XMLN_BLOCKLIST
[]
=
"BlockList.xml"
;
sal_Char
XMLN_BLOCKLIST
[]
=
"BlockList.xml"
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -243,10 +243,9 @@ ULONG SwXMLTextBlocks::GetMacroTable( USHORT nIdx,
aFilterArguments
[
0
]
<<=
xReplace
;
// get filter
OUString
sFilterComponent
(
OUString
::
createFromAscii
(
bOasis
?
"com.sun.star.comp.Writer.XMLOasisAutotextEventsImporter"
:
"com.sun.star.comp.Writer.XMLAutotextEventsImporter"
));
OUString
sFilterComponent
=
bOasis
?
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.Writer.XMLOasisAutotextEventsImporter"
))
:
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.Writer.XMLAutotextEventsImporter"
));
uno
::
Reference
<
xml
::
sax
::
XDocumentHandler
>
xFilter
(
xServiceFactory
->
createInstanceWithArguments
(
sFilterComponent
,
aFilterArguments
),
...
...
@@ -587,9 +586,7 @@ void SwXMLTextBlocks::WriteInfo( void )
uno
::
Reference
<
xml
::
sax
::
XDocumentHandler
>
xHandler
(
xWriter
,
uno
::
UNO_QUERY
);
// #110680#
// SwXMLBlockListExport aExp(*this, OUString::createFromAscii(XMLN_BLOCKLIST), xHandler);
SwXMLBlockListExport
aExp
(
xServiceFactory
,
*
this
,
OUString
::
createFromAscii
(
XMLN_BLOCKLIST
),
xHandler
);
SwXMLBlockListExport
aExp
(
xServiceFactory
,
*
this
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
XMLN_BLOCKLIST
)),
xHandler
);
aExp
.
exportDoc
(
XML_BLOCK_LIST
);
...
...
@@ -683,14 +680,14 @@ ULONG SwXMLTextBlocks::SetMacroTable(
aParams
[
0
]
<<=
xDocHandler
;
aParams
[
1
]
<<=
xEvents
;
// get filter component
OUString
sFilterComponent
=
bOasis
?
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.Writer.XMLOasisAutotextEventsExporter"
))
:
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.Writer.XMLAutotextEventsExporter"
));
uno
::
Reference
<
document
::
XExporter
>
xExporter
(
xServiceFactory
->
createInstanceWithArguments
(
OUString
::
createFromAscii
(
bOasis
?
"com.sun.star.comp.Writer.XMLOasisAutotextEventsExporter"
:
"com.sun.star.comp.Writer.XMLAutotextEventsExporter"
),
aParams
),
UNO_QUERY
);
sFilterComponent
,
aParams
),
UNO_QUERY
);
ASSERT
(
xExporter
.
is
(),
"can't instantiate export filter component"
);
if
(
xExporter
.
is
()
)
...
...
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