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
530b8355
Kaydet (Commit)
530b8355
authored
Mar 12, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
üst
ea807d03
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+1
-1
mysqlc_driver.cxx
mysqlc/source/mysqlc_driver.cxx
+2
-2
mysqlc_general.cxx
mysqlc/source/mysqlc_general.cxx
+1
-1
filterdet.cxx
sdext/source/pdfimport/filterdet.cxx
+2
-2
imagecontainer.cxx
sdext/source/pdfimport/tree/imagecontainer.cxx
+1
-1
No files found.
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
530b8355
...
@@ -217,7 +217,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
...
@@ -217,7 +217,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
#if OSL_DEBUG_LEVEL > 0
#if OSL_DEBUG_LEVEL > 0
::
rtl
::
OString
sMessage
(
"OConnection::construct: malformed URI: "
);
::
rtl
::
OString
sMessage
(
"OConnection::construct: malformed URI: "
);
sMessage
+=
::
rtl
::
OUStringToOString
(
e
.
getMessage
(),
osl_getThreadTextEncoding
()
);
sMessage
+=
::
rtl
::
OUStringToOString
(
e
.
getMessage
(),
osl_getThreadTextEncoding
()
);
OSL_
ENSURE
(
false
,
sMessage
.
getStr
()
);
OSL_
FAIL
(
sMessage
.
getStr
()
);
#endif
#endif
}
}
...
...
mysqlc/source/mysqlc_driver.cxx
Dosyayı görüntüle @
530b8355
...
@@ -154,7 +154,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
...
@@ -154,7 +154,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
// attempted to load - was it successful?
// attempted to load - was it successful?
if
(
!
m_hCppConnModule
)
if
(
!
m_hCppConnModule
)
{
{
OSL_
ENSURE
(
false
,
"MysqlCDriver::impl_initCppConn_lck_throw: could not load the "
CPPCONN_LIB
" library!"
);
OSL_
FAIL
(
"MysqlCDriver::impl_initCppConn_lck_throw: could not load the "
CPPCONN_LIB
" library!"
);
throw
SQLException
(
throw
SQLException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unable to load the "
CPPCONN_LIB
" library."
)
),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unable to load the "
CPPCONN_LIB
" library."
)
),
*
this
,
*
this
,
...
@@ -171,7 +171,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
...
@@ -171,7 +171,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
const
FGetMySQLDriver
pFactoryFunction
=
(
FGetMySQLDriver
)(
osl_getFunctionSymbol
(
m_hCppConnModule
,
sSymbolName
.
pData
)
);
const
FGetMySQLDriver
pFactoryFunction
=
(
FGetMySQLDriver
)(
osl_getFunctionSymbol
(
m_hCppConnModule
,
sSymbolName
.
pData
)
);
if
(
!
pFactoryFunction
)
if
(
!
pFactoryFunction
)
{
{
OSL_
ENSURE
(
false
,
"MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in "
CPPCONN_LIB
"!"
);
OSL_
FAIL
(
"MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in "
CPPCONN_LIB
"!"
);
throw
SQLException
(
throw
SQLException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
CPPCONN_LIB
" is invalid: missing the driver factory function."
)
),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
CPPCONN_LIB
" is invalid: missing the driver factory function."
)
),
*
this
,
*
this
,
...
...
mysqlc/source/mysqlc_general.cxx
Dosyayı görüntüle @
530b8355
...
@@ -154,7 +154,7 @@ int mysqlToOOOType(int cppConnType)
...
@@ -154,7 +154,7 @@ int mysqlToOOOType(int cppConnType)
return
com
::
sun
::
star
::
sdbc
::
DataType
::
VARCHAR
;
return
com
::
sun
::
star
::
sdbc
::
DataType
::
VARCHAR
;
}
}
OSL_
ENSURE
(
false
,
"mysqlToOOOType: unhandled case, falling back to VARCHAR"
);
OSL_
FAIL
(
"mysqlToOOOType: unhandled case, falling back to VARCHAR"
);
return
com
::
sun
::
star
::
sdbc
::
DataType
::
VARCHAR
;
return
com
::
sun
::
star
::
sdbc
::
DataType
::
VARCHAR
;
}
}
...
...
sdext/source/pdfimport/filterdet.cxx
Dosyayı görüntüle @
530b8355
...
@@ -78,7 +78,7 @@ namespace {
...
@@ -78,7 +78,7 @@ namespace {
switch
(
nIndex
)
switch
(
nIndex
)
{
{
default
:
default
:
OSL_
ENSURE
(
false
,
"Unexpected case!"
);
OSL_
FAIL
(
"Unexpected case!"
);
break
;
break
;
case
DRAW_INDEX
:
case
DRAW_INDEX
:
bDrawState
=
sal_True
;
bDrawState
=
sal_True
;
...
@@ -520,7 +520,7 @@ rtl::OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue
...
@@ -520,7 +520,7 @@ rtl::OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue
break
;
break
;
default
:
default
:
OSL_
ENSURE
(
false
,
"Unexpected case"
);
OSL_
FAIL
(
"Unexpected case"
);
}
}
aOutTypeName
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"pdf_Portable_Document_Format"
)
);
aOutTypeName
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"pdf_Portable_Document_Format"
)
);
...
...
sdext/source/pdfimport/tree/imagecontainer.cxx
Dosyayı görüntüle @
530b8355
...
@@ -146,7 +146,7 @@ void ImageContainer::writeBase64EncodedStream( ImageId nId, EmitContext& rContex
...
@@ -146,7 +146,7 @@ void ImageContainer::writeBase64EncodedStream( ImageId nId, EmitContext& rContex
uno
::
Sequence
<
sal_Int8
>
aData
;
uno
::
Sequence
<
sal_Int8
>
aData
;
if
(
!
(
pValue
->
Value
>>=
aData
)
)
if
(
!
(
pValue
->
Value
>>=
aData
)
)
OSL_
ENSURE
(
false
,
"Wrong data type"
);
OSL_
FAIL
(
"Wrong data type"
);
rContext
.
rEmitter
.
write
(
encodeBase64
(
aData
.
getConstArray
(),
aData
.
getLength
()
));
rContext
.
rEmitter
.
write
(
encodeBase64
(
aData
.
getConstArray
(),
aData
.
getLength
()
));
}
}
...
...
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