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
c9eddb9d
Kaydet (Commit)
c9eddb9d
authored
Mar 12, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
üst
5ad69209
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
oleobjw.cxx
extensions/source/ole/oleobjw.cxx
+1
-1
ZipPackage.cxx
package/source/zippackage/ZipPackage.cxx
+2
-2
ZipPackageFolder.cxx
package/source/zippackage/ZipPackageFolder.cxx
+11
-11
ZipPackageStream.cxx
package/source/zippackage/ZipPackageStream.cxx
+4
-4
documentdigitalsignatures.cxx
xmlsecurity/source/component/documentdigitalsignatures.cxx
+1
-1
digitalsignaturesdialog.cxx
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+1
-1
No files found.
extensions/source/ole/oleobjw.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -332,7 +332,7 @@ void SAL_CALL IUnknownWrapper_Impl::setValue( const OUString& aPropertyName,
...
@@ -332,7 +332,7 @@ void SAL_CALL IUnknownWrapper_Impl::setValue( const OUString& aPropertyName,
OUString
msg
(
OUSTR
(
"[automation bridge] Property "
)
+
aPropertyName
+
OUString
msg
(
OUSTR
(
"[automation bridge] Property "
)
+
aPropertyName
+
OUSTR
(
" is read-only"
));
OUSTR
(
" is read-only"
));
OString
sMsg
=
OUStringToOString
(
msg
,
osl_getThreadTextEncoding
());
OString
sMsg
=
OUStringToOString
(
msg
,
osl_getThreadTextEncoding
());
OSL_
ENSURE
(
0
,
sMsg
.
getStr
());
OSL_
FAIL
(
sMsg
.
getStr
());
// ignore silently
// ignore silently
return
;
return
;
}
}
...
...
package/source/zippackage/ZipPackage.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -988,7 +988,7 @@ void ZipPackage::WriteMimetypeMagicFile( ZipOutputStream& aZipOut )
...
@@ -988,7 +988,7 @@ void ZipPackage::WriteMimetypeMagicFile( ZipOutputStream& aZipOut )
}
}
catch
(
::
com
::
sun
::
star
::
io
::
IOException
&
r
)
catch
(
::
com
::
sun
::
star
::
io
::
IOException
&
r
)
{
{
OSL_
ENSURE
(
0
,
"Error adding mimetype to the ZipOutputStream"
);
OSL_
FAIL
(
"Error adding mimetype to the ZipOutputStream"
);
throw
WrappedTargetException
(
throw
WrappedTargetException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
"Error adding mimetype to the ZipOutputStream!"
)
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
"Error adding mimetype to the ZipOutputStream!"
)
),
static_cast
<
OWeakObject
*
>
(
this
),
static_cast
<
OWeakObject
*
>
(
this
),
...
@@ -1033,7 +1033,7 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< Sequence
...
@@ -1033,7 +1033,7 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< Sequence
}
}
else
else
{
{
OSL_
ENSURE
(
0
,
"Couldn't get a ManifestWriter!"
);
OSL_
FAIL
(
"Couldn't get a ManifestWriter!"
);
IOException
aException
;
IOException
aException
;
throw
WrappedTargetException
(
throw
WrappedTargetException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
"Couldn't get a ManifestWriter!"
)
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
"Couldn't get a ManifestWriter!"
)
),
...
...
package/source/zippackage/ZipPackageFolder.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -341,12 +341,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -341,12 +341,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
}
}
catch
(
ZipException
&
)
catch
(
ZipException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
catch
(
IOException
&
)
catch
(
IOException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
}
}
...
@@ -437,7 +437,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -437,7 +437,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
if
(
!
xStream
.
is
()
)
if
(
!
xStream
.
is
()
)
{
{
OSL_
ENSURE
(
0
,
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
OSL_
FAIL
(
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
continue
;
continue
;
}
}
...
@@ -490,14 +490,14 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -490,14 +490,14 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
}
}
else
else
{
{
OSL_
ENSURE
(
0
,
"The package component requires that every stream either be FROM a package or it must support XSeekable!"
);
OSL_
FAIL
(
"The package component requires that every stream either be FROM a package or it must support XSeekable!"
);
continue
;
continue
;
}
}
}
}
}
}
catch
(
Exception
&
)
catch
(
Exception
&
)
{
{
OSL_
ENSURE
(
0
,
"The stream provided to the package component has problems!"
);
OSL_
FAIL
(
"The stream provided to the package component has problems!"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
continue
;
continue
;
}
}
...
@@ -560,7 +560,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -560,7 +560,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
if
(
!
xStream
.
is
()
)
if
(
!
xStream
.
is
()
)
{
{
// Make sure that we actually _got_ a new one !
// Make sure that we actually _got_ a new one !
OSL_
ENSURE
(
0
,
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
OSL_
FAIL
(
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
continue
;
continue
;
}
}
}
}
...
@@ -588,12 +588,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -588,12 +588,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
}
}
catch
(
ZipException
&
)
catch
(
ZipException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
catch
(
IOException
&
)
catch
(
IOException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
}
}
...
@@ -615,7 +615,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -615,7 +615,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
if
(
!
xStream
.
is
()
)
if
(
!
xStream
.
is
()
)
{
{
// Make sure that we actually _got_ a new one !
// Make sure that we actually _got_ a new one !
OSL_
ENSURE
(
0
,
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
OSL_
FAIL
(
"ZipPackageStream didn't have a stream associated with it, skipping!"
);
continue
;
continue
;
}
}
}
}
...
@@ -645,12 +645,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
...
@@ -645,12 +645,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr
}
}
catch
(
ZipException
&
)
catch
(
ZipException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
catch
(
IOException
&
)
catch
(
IOException
&
)
{
{
OSL_
ENSURE
(
0
,
"Error writing ZipOutputStream"
);
OSL_
FAIL
(
"Error writing ZipOutputStream"
);
bWritingFailed
=
sal_True
;
bWritingFailed
=
sal_True
;
}
}
...
...
package/source/zippackage/ZipPackageStream.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -417,12 +417,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getRawData()
...
@@ -417,12 +417,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getRawData()
}
}
catch
(
ZipException
&
)
//rException)
catch
(
ZipException
&
)
//rException)
{
{
OSL_
ENSURE
(
0
,
"ZipException thrown"
);
//rException.Message);
OSL_
FAIL
(
"ZipException thrown"
);
//rException.Message);
return
Reference
<
io
::
XInputStream
>
();
return
Reference
<
io
::
XInputStream
>
();
}
}
catch
(
Exception
&
)
catch
(
Exception
&
)
{
{
OSL_
ENSURE
(
0
,
"Exception is thrown during stream wrapping!
\n
"
);
OSL_
FAIL
(
"Exception is thrown during stream wrapping!
\n
"
);
return
Reference
<
io
::
XInputStream
>
();
return
Reference
<
io
::
XInputStream
>
();
}
}
}
}
...
@@ -448,12 +448,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getInputStream( )
...
@@ -448,12 +448,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getInputStream( )
}
}
catch
(
ZipException
&
)
//rException)
catch
(
ZipException
&
)
//rException)
{
{
OSL_
ENSURE
(
0
,
"ZipException thrown"
);
//rException.Message);
OSL_
FAIL
(
"ZipException thrown"
);
//rException.Message);
return
Reference
<
io
::
XInputStream
>
();
return
Reference
<
io
::
XInputStream
>
();
}
}
catch
(
Exception
&
)
catch
(
Exception
&
)
{
{
OSL_
ENSURE
(
0
,
"Exception is thrown during stream wrapping!
\n
"
);
OSL_
FAIL
(
"Exception is thrown during stream wrapping!
\n
"
);
return
Reference
<
io
::
XInputStream
>
();
return
Reference
<
io
::
XInputStream
>
();
}
}
}
}
...
...
xmlsecurity/source/component/documentdigitalsignatures.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -340,7 +340,7 @@ DocumentDigitalSignatures::ImplVerifySignatures(
...
@@ -340,7 +340,7 @@ DocumentDigitalSignatures::ImplVerifySignatures(
rSigInfo
.
CertificateStatus
=
xSecEnv
->
verifyCertificate
(
rSigInfo
.
Signer
,
rSigInfo
.
CertificateStatus
=
xSecEnv
->
verifyCertificate
(
rSigInfo
.
Signer
,
Sequence
<
Reference
<
css
::
security
::
XCertificate
>
>
());
Sequence
<
Reference
<
css
::
security
::
XCertificate
>
>
());
}
catch
(
SecurityException
&
)
{
}
catch
(
SecurityException
&
)
{
OSL_
ENSURE
(
0
,
"Verification of certificate failed"
);
OSL_
FAIL
(
"Verification of certificate failed"
);
rSigInfo
.
CertificateStatus
=
css
::
security
::
CertificateValidity
::
INVALID
;
rSigInfo
.
CertificateStatus
=
css
::
security
::
CertificateValidity
::
INVALID
;
}
}
}
}
...
...
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
Dosyayı görüntüle @
c9eddb9d
...
@@ -640,7 +640,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -640,7 +640,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
nValidCerts
++
;
nValidCerts
++
;
}
catch
(
css
::
uno
::
SecurityException
&
)
{
}
catch
(
css
::
uno
::
SecurityException
&
)
{
OSL_
ENSURE
(
0
,
"Verification of certificate failed"
);
OSL_
FAIL
(
"Verification of certificate failed"
);
bCertValid
=
false
;
bCertValid
=
false
;
}
}
...
...
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