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
6488e5f1
Kaydet (Commit)
6488e5f1
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
7769f9db
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
24 deletions
+22
-24
urp_reader.cxx
bridges/source/remote/urp/urp_reader.cxx
+1
-2
typelib.cxx
cppu/source/typelib/typelib.cxx
+4
-4
implbase.cxx
cppuhelper/source/implbase.cxx
+4
-4
propshlp.cxx
cppuhelper/source/propshlp.cxx
+1
-1
weak.cxx
cppuhelper/source/weak.cxx
+2
-2
virtualmachine.cxx
jvmaccess/source/virtualmachine.cxx
+2
-2
util.cxx
jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+1
-1
bridgefactory.cxx
remotebridges/source/factory/bridgefactory.cxx
+1
-1
sockethelper.cxx
sal/qa/osl/socket/sockethelper.cxx
+1
-1
javavm.cxx
stoc/source/javavm/javavm.cxx
+5
-6
No files found.
bridges/source/remote/urp/urp_reader.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -565,8 +565,7 @@ void OReaderThread::run()
TYPELIB_DANGER_RELEASE
(
pType
);
if
(
!
ok
)
{
OSL_ENSURE
(
false
,
OSL_FAIL
(
(
"urp_bridge: error while unpacking current"
" context"
)
);
disposeEnvironment
();
...
...
cppu/source/typelib/typelib.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -1309,7 +1309,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceMethod(
sal_Int32
nOffset
=
rtl_ustr_lastIndexOfChar_WithLength
(
pTypeName
->
buffer
,
pTypeName
->
length
,
':'
);
if
(
nOffset
<=
0
||
pTypeName
->
buffer
[
nOffset
-
1
]
!=
':'
)
{
OSL_
ENSURE
(
false
,
"Bad interface method type name"
);
OSL_
FAIL
(
"Bad interface method type name"
);
return
;
}
rtl
::
OUString
aInterfaceTypeName
(
pTypeName
->
buffer
,
nOffset
-
1
);
...
...
@@ -1322,7 +1322,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceMethod(
||
!
complete
(
reinterpret_cast
<
typelib_TypeDescription
**
>
(
&
pInterface
),
false
))
{
OSL_
ENSURE
(
false
,
"No interface corresponding to interface method"
);
OSL_
FAIL
(
"No interface corresponding to interface method"
);
return
;
}
...
...
@@ -1402,7 +1402,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
sal_Int32
nOffset
=
rtl_ustr_lastIndexOfChar_WithLength
(
pTypeName
->
buffer
,
pTypeName
->
length
,
':'
);
if
(
nOffset
<=
0
||
pTypeName
->
buffer
[
nOffset
-
1
]
!=
':'
)
{
OSL_
ENSURE
(
false
,
"Bad interface attribute type name"
);
OSL_
FAIL
(
"Bad interface attribute type name"
);
return
;
}
rtl
::
OUString
aInterfaceTypeName
(
pTypeName
->
buffer
,
nOffset
-
1
);
...
...
@@ -1415,7 +1415,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
||
!
complete
(
reinterpret_cast
<
typelib_TypeDescription
**
>
(
&
pInterface
),
false
))
{
OSL_
ENSURE
(
false
,
"No interface corresponding to interface attribute"
);
OSL_
FAIL
(
"No interface corresponding to interface attribute"
);
return
;
}
...
...
cppuhelper/source/implbase.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -254,8 +254,8 @@ void WeakComponentImplHelperBase::release()
dispose
();
}
catch
(
RuntimeException
const
&
exc
)
{
// don't break throw ()
OSL_
ENSURE
(
false
,
OUStringToOString
(
OSL_
FAIL
(
OUStringToOString
(
exc
.
Message
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
static_cast
<
void
>
(
exc
);
}
...
...
@@ -390,8 +390,8 @@ void WeakAggComponentImplHelperBase::release()
dispose
();
}
catch
(
RuntimeException
const
&
exc
)
{
// don't break throw ()
OSL_
ENSURE
(
false
,
OUStringToOString
(
OSL_
FAIL
(
OUStringToOString
(
exc
.
Message
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
static_cast
<
void
>
(
exc
);
}
...
...
cppuhelper/source/propshlp.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -1016,7 +1016,7 @@ void OPropertyArrayHelper::init( sal_Bool bSorted ) SAL_THROW( () )
{
#ifndef OS2 // YD disabled, too many troubles with debug builds!
if
(
bSorted
)
{
OSL_
ENSURE
(
false
,
"Property array is not sorted"
);
OSL_
FAIL
(
"Property array is not sorted"
);
}
#endif
// not sorted
...
...
cppuhelper/source/weak.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -226,8 +226,8 @@ void OWeakObject::disposeWeakConnectionPoint()
p
->
dispose
();
}
catch
(
RuntimeException
const
&
exc
)
{
OSL_
ENSURE
(
false
,
OUStringToOString
(
OSL_
FAIL
(
OUStringToOString
(
exc
.
Message
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
static_cast
<
void
>
(
exc
);
}
...
...
jvmaccess/source/virtualmachine.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -100,7 +100,7 @@ JNIEnv * VirtualMachine::attachThread(bool * pAttached) const
JNIEnv
*
pEnv
;
jint
n
=
m_pVm
->
GetEnv
(
reinterpret_cast
<
void
**
>
(
&
pEnv
),
m_nVersion
);
if
(
n
!=
JNI_OK
&&
n
!=
JNI_EDETACHED
)
{
OSL_
ENSURE
(
false
,
"JNI: GetEnv failed"
);
OSL_
FAIL
(
"JNI: GetEnv failed"
);
}
if
(
pEnv
==
0
)
{
...
...
@@ -119,7 +119,7 @@ void VirtualMachine::detachThread() const
{
#ifdef SOLAR_JAVA
if
(
m_pVm
->
DetachCurrentThread
()
!=
JNI_OK
)
{
OSL_
ENSURE
(
false
,
"JNI: DetachCurrentThread failed"
);
OSL_
FAIL
(
"JNI: DetachCurrentThread failed"
);
}
#endif
}
...
...
jvmfwk/plugins/sunmajor/pluginlib/util.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -203,7 +203,7 @@ inline FileHandleGuard::~FileHandleGuard() SAL_THROW(())
{
if
(
osl_closeFile
(
m_rHandle
)
!=
osl_File_E_None
)
{
OSL_
ENSURE
(
false
,
"unexpected situation"
);
OSL_
FAIL
(
"unexpected situation"
);
}
}
}
...
...
remotebridges/source/factory/bridgefactory.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -230,7 +230,7 @@ namespace remotebridges_factory
}
catch
(
rtl
::
MalformedUriException
&
)
{
OSL_
ENSURE
(
false
,
"MalformedUriException"
);
OSL_
FAIL
(
"MalformedUriException"
);
}
ServiceHashMap
::
iterator
ii
=
m_mapProtocolToService
.
find
(
sProtocolName
);
if
(
ii
!=
m_mapProtocolToService
.
end
()
)
...
...
sal/qa/osl/socket/sockethelper.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -107,7 +107,7 @@ void printUString( const ::rtl::OUString & str, const char* msg)
#else
char
hostname
[
255
];
if
(
gethostname
(
hostname
,
255
)
!=
0
)
{
OSL_
ENSURE
(
false
,
"#Error: gethostname failed."
);
OSL_
FAIL
(
"#Error: gethostname failed."
);
}
struct
hostent
*
hptr
;
...
...
stoc/source/javavm/javavm.cxx
Dosyayı görüntüle @
6488e5f1
...
...
@@ -643,7 +643,7 @@ extern "C" sal_Bool SAL_CALL component_writeInfo(void * pServiceManager,
}
catch
(
css
::
uno
::
Exception
&
)
{
OSL_
ENSURE
(
false
,
"com.sun.star.uno.Exception caught"
);
OSL_
FAIL
(
"com.sun.star.uno.Exception caught"
);
}
}
return
false
;
...
...
@@ -1421,7 +1421,7 @@ JavaVirtualMachine::~JavaVirtualMachine()
}
catch
(
css
::
uno
::
Exception
&
)
{
OSL_
ENSURE
(
false
,
"com.sun.star.uno.Exception caught"
);
OSL_
FAIL
(
"com.sun.star.uno.Exception caught"
);
}
if
(
m_xJavaConfiguration
.
is
())
// We should never get here, but just in case...
...
...
@@ -1431,7 +1431,7 @@ JavaVirtualMachine::~JavaVirtualMachine()
}
catch
(
css
::
uno
::
Exception
&
)
{
OSL_
ENSURE
(
false
,
"com.sun.star.uno.Exception caught"
);
OSL_
FAIL
(
"com.sun.star.uno.Exception caught"
);
}
}
...
...
@@ -1658,12 +1658,11 @@ void JavaVirtualMachine::setINetSettingsInVM(bool set_reset)
}
catch
(
css
::
uno
::
RuntimeException
&
)
{
OSL_
ENSURE
(
false
,
"RuntimeException"
);
OSL_
FAIL
(
"RuntimeException"
);
}
catch
(
jvmaccess
::
VirtualMachine
::
AttachGuard
::
CreationException
&
)
{
OSL_ENSURE
(
false
,
"jvmaccess::VirtualMachine::AttachGuard::CreationException"
);
OSL_FAIL
(
"jvmaccess::VirtualMachine::AttachGuard::CreationException"
);
}
}
...
...
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