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
54ec8a9a
Kaydet (Commit)
54ec8a9a
authored
Eki 11, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-variable
Change-Id: I7777008aac6331d7598f496c4808ab34c73f814e
üst
ac8c5ea6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
42 deletions
+31
-42
log-areas.dox
include/sal/log-areas.dox
+1
-0
documentbuilder.cxx
unoxml/source/dom/documentbuilder.cxx
+8
-8
xpathapi.cxx
unoxml/source/xpath/xpathapi.cxx
+22
-34
No files found.
include/sal/log-areas.dox
Dosyayı görüntüle @
54ec8a9a
...
@@ -428,6 +428,7 @@ certain functionality.
...
@@ -428,6 +428,7 @@ certain functionality.
@li @c svg
@li @c svg
@li @c ucbhelper
@li @c ucbhelper
@li @c unoidl
@li @c unoidl
@li @c unoxml
@li @c uui
@li @c uui
@li @c vbahelper
@li @c vbahelper
@li @c xmlhelp
@li @c xmlhelp
...
...
unoxml/source/dom/documentbuilder.cxx
Dosyayı görüntüle @
54ec8a9a
...
@@ -278,19 +278,19 @@ namespace DOM
...
@@ -278,19 +278,19 @@ namespace DOM
// default warning handler does not trigger assertion
// default warning handler does not trigger assertion
static
void
warning_func
(
void
*
ctx
,
const
char
*
/*msg*/
,
...)
static
void
warning_func
(
void
*
ctx
,
const
char
*
/*msg*/
,
...)
{
{
OUStringBuffer
buf
(
"libxml2 warning
\n
"
);
SAL_INFO
(
buf
.
append
(
make_error_message
(
static_cast
<
xmlParserCtxtPtr
>
(
ctx
)));
"unoxml"
,
OString
msg
=
OUStringToOString
(
buf
.
makeStringAndClear
(),
RTL_TEXTENCODING_ASCII_US
);
"libxml2 warning: "
OSL_TRACE
(
msg
.
getStr
(
));
<<
make_error_message
(
static_cast
<
xmlParserCtxtPtr
>
(
ctx
)
));
}
}
// default error handler triggers assertion
// default error handler triggers assertion
static
void
error_func
(
void
*
ctx
,
const
char
*
/*msg*/
,
...)
static
void
error_func
(
void
*
ctx
,
const
char
*
/*msg*/
,
...)
{
{
OUStringBuffer
buf
(
"libxml2 error
\n
"
);
SAL_WARN
(
buf
.
append
(
make_error_message
(
static_cast
<
xmlParserCtxtPtr
>
(
ctx
)));
"unoxml"
,
OString
msg
=
OUStringToOString
(
buf
.
makeStringAndClear
(),
RTL_TEXTENCODING_ASCII_US
);
"libxml2 error: "
OSL_FAIL
(
msg
.
getStr
(
));
<<
make_error_message
(
static_cast
<
xmlParserCtxtPtr
>
(
ctx
)
));
}
}
}
// extern "C"
}
// extern "C"
...
...
unoxml/source/xpath/xpathapi.cxx
Dosyayı görüntüle @
54ec8a9a
...
@@ -260,20 +260,24 @@ namespace XPath
...
@@ -260,20 +260,24 @@ namespace XPath
static
OUString
make_error_message
(
xmlErrorPtr
pError
)
static
OUString
make_error_message
(
xmlErrorPtr
pError
)
{
{
OUStringBuffer
buf
;
OUStringBuffer
buf
;
if
(
pError
->
message
)
{
if
(
pError
)
{
buf
.
appendAscii
(
pError
->
message
);
if
(
pError
->
message
)
{
}
buf
.
appendAscii
(
pError
->
message
);
int
line
=
pError
->
line
;
}
if
(
line
)
{
int
line
=
pError
->
line
;
buf
.
appendAscii
(
"Line: "
);
if
(
line
)
{
buf
.
append
(
static_cast
<
sal_Int32
>
(
line
));
buf
.
appendAscii
(
"Line: "
);
buf
.
appendAscii
(
"
\n
"
);
buf
.
append
(
static_cast
<
sal_Int32
>
(
line
));
}
buf
.
appendAscii
(
"
\n
"
);
int
column
=
pError
->
int2
;
}
if
(
column
)
{
int
column
=
pError
->
int2
;
buf
.
appendAscii
(
"Column: "
);
if
(
column
)
{
buf
.
append
(
static_cast
<
sal_Int32
>
(
column
));
buf
.
appendAscii
(
"Column: "
);
buf
.
appendAscii
(
"
\n
"
);
buf
.
append
(
static_cast
<
sal_Int32
>
(
column
));
buf
.
appendAscii
(
"
\n
"
);
}
}
else
{
buf
.
appendAscii
(
"no error argument!"
);
}
}
OUString
msg
=
buf
.
makeStringAndClear
();
OUString
msg
=
buf
.
makeStringAndClear
();
return
msg
;
return
msg
;
...
@@ -281,9 +285,8 @@ namespace XPath
...
@@ -281,9 +285,8 @@ namespace XPath
extern
"C"
{
extern
"C"
{
static
void
generic_error_func
(
void
*
userData
,
const
char
*
format
,
...)
static
void
generic_error_func
(
void
*
,
const
char
*
format
,
...)
{
{
(
void
)
userData
;
char
str
[
1000
];
char
str
[
1000
];
va_list
args
;
va_list
args
;
...
@@ -294,27 +297,12 @@ namespace XPath
...
@@ -294,27 +297,12 @@ namespace XPath
vsnprintf
(
str
,
sizeof
(
str
),
format
,
args
);
vsnprintf
(
str
,
sizeof
(
str
),
format
,
args
);
va_end
(
args
);
va_end
(
args
);
OUStringBuffer
buf
(
SAL_WARN
(
"unoxml"
,
"libxml2 error: "
<<
str
);
"libxml2 error:
\n
"
);
buf
.
appendAscii
(
str
);
OString
msg
=
OUStringToOString
(
buf
.
makeStringAndClear
(),
RTL_TEXTENCODING_ASCII_US
);
OSL_FAIL
(
msg
.
getStr
());
}
}
static
void
structured_error_func
(
void
*
userData
,
xmlErrorPtr
error
)
static
void
structured_error_func
(
void
*
,
xmlErrorPtr
error
)
{
{
(
void
)
userData
;
SAL_WARN
(
"unoxml"
,
"libxml2 error: "
<<
make_error_message
(
error
));
OUStringBuffer
buf
(
"libxml2 error:
\n
"
);
if
(
error
)
{
buf
.
append
(
make_error_message
(
error
));
}
else
{
buf
.
append
(
"no error argument!"
);
}
OString
msg
=
OUStringToOString
(
buf
.
makeStringAndClear
(),
RTL_TEXTENCODING_ASCII_US
);
OSL_FAIL
(
msg
.
getStr
());
}
}
}
// extern "C"
}
// extern "C"
...
...
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