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
ebe80ac6
Kaydet (Commit)
ebe80ac6
authored
Ara 07, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up use of libxml2 BAD_CAST
Change-Id: Ia48681f1be4fb3c51ea6805a2dab1b8b957540d0
üst
a800cc78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
chart2export.cxx
chart2/qa/extras/chart2export.cxx
+17
-14
No files found.
chart2/qa/extras/chart2export.cxx
Dosyayı görüntüle @
ebe80ac6
...
@@ -227,24 +227,27 @@ xmlDocPtr Chart2ExportTest::parseExport(const OUString& rDir, const OUString& rF
...
@@ -227,24 +227,27 @@ xmlDocPtr Chart2ExportTest::parseExport(const OUString& rDir, const OUString& rF
void
Chart2ExportTest
::
registerNamespaces
(
xmlXPathContextPtr
&
pXmlXPathCtx
)
void
Chart2ExportTest
::
registerNamespaces
(
xmlXPathContextPtr
&
pXmlXPathCtx
)
{
{
struct
{
xmlChar
*
pPrefix
;
xmlChar
*
pURI
;
}
aNamespaces
[]
=
struct
{
char
const
*
pPrefix
;
char
const
*
pURI
;
}
aNamespaces
[]
=
{
{
{
BAD_CAST
(
"w"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/wordprocessingml/2006/main"
)
},
{
"w"
,
"http://schemas.openxmlformats.org/wordprocessingml/2006/main"
},
{
BAD_CAST
(
"v"
),
BAD_CAST
(
"urn:schemas-microsoft-com:vml"
)
},
{
"v"
,
"urn:schemas-microsoft-com:vml"
},
{
BAD_CAST
(
"c"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/chart"
)
},
{
"c"
,
"http://schemas.openxmlformats.org/drawingml/2006/chart"
},
{
BAD_CAST
(
"a"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/main"
)
},
{
"a"
,
"http://schemas.openxmlformats.org/drawingml/2006/main"
},
{
BAD_CAST
(
"mc"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/markup-compatibility/2006"
)
},
{
"mc"
,
"http://schemas.openxmlformats.org/markup-compatibility/2006"
},
{
BAD_CAST
(
"wps"
),
BAD_CAST
(
"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
)
},
{
"wps"
,
"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
},
{
BAD_CAST
(
"wpg"
),
BAD_CAST
(
"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"
)
},
{
"wpg"
,
"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"
},
{
BAD_CAST
(
"wp"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
)
},
{
"wp"
,
"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
},
{
BAD_CAST
(
"office"
),
BAD_CAST
(
"urn:oasis:names:tc:opendocument:xmlns:office:1.0"
)
},
{
"office"
,
"urn:oasis:names:tc:opendocument:xmlns:office:1.0"
},
{
BAD_CAST
(
"table"
),
BAD_CAST
(
"urn:oasis:names:tc:opendocument:xmlns:table:1.0"
)
},
{
"table"
,
"urn:oasis:names:tc:opendocument:xmlns:table:1.0"
},
{
BAD_CAST
(
"text"
),
BAD_CAST
(
"urn:oasis:names:tc:opendocument:xmlns:text:1.0"
)
},
{
"text"
,
"urn:oasis:names:tc:opendocument:xmlns:text:1.0"
},
{
BAD_CAST
(
"xlink"
),
BAD_CAST
(
"http://www.w3c.org/1999/xlink"
)
}
{
"xlink"
,
"http://www.w3c.org/1999/xlink"
}
};
};
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aNamespaces
);
++
i
)
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aNamespaces
);
++
i
)
{
{
xmlXPathRegisterNs
(
pXmlXPathCtx
,
aNamespaces
[
i
].
pPrefix
,
aNamespaces
[
i
].
pURI
);
xmlXPathRegisterNs
(
pXmlXPathCtx
,
reinterpret_cast
<
xmlChar
const
*>
(
aNamespaces
[
i
].
pPrefix
),
reinterpret_cast
<
xmlChar
const
*>
(
aNamespaces
[
i
].
pURI
));
}
}
}
}
...
...
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