summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-14 09:55:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-14 20:22:35 +0100
commit9013666c5ad32c5733be7ae27e872ff0d1b3db7b (patch)
treead2f75a7cd34960ed3d993a77257c670a3c813ab /svx
parent3831aa8114906e17fcc2d4d0ea689d11f37c4407 (diff)
cid#1471346 Uncaught exception
Change-Id: I535affd6597636aa32e1cf9c6005238f9503ef6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109266 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/gallerybinaryengine.cxx2
-rw-r--r--svx/source/gallery2/gallerybinaryengineentry.cxx2
-rw-r--r--svx/source/gallery2/galtheme.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/gallery2/gallerybinaryengine.cxx b/svx/source/gallery2/gallerybinaryengine.cxx
index 8f0fa9fcb240..16334e719623 100644
--- a/svx/source/gallery2/gallerybinaryengine.cxx
+++ b/svx/source/gallery2/gallerybinaryengine.cxx
@@ -771,7 +771,7 @@ SvStream& GalleryBinaryEngine::writeGalleryTheme(SvStream& rOStm, const GalleryT
.WriteUInt32(COMPAT_FORMAT('E', 'S', 'R', 'V'));
const tools::Long nReservePos = rOStm.Tell();
- std::unique_ptr<VersionCompat> pCompat(new VersionCompat(rOStm, StreamMode::WRITE, 2));
+ std::unique_ptr<VersionCompatWrite> pCompat(new VersionCompatWrite(rOStm, 2));
rOStm.WriteUInt32(rId).WriteBool(pThm->IsNameFromResource()); // From version 2 and up
diff --git a/svx/source/gallery2/gallerybinaryengineentry.cxx b/svx/source/gallery2/gallerybinaryengineentry.cxx
index bb11d015dfd0..e50e8e605d08 100644
--- a/svx/source/gallery2/gallerybinaryengineentry.cxx
+++ b/svx/source/gallery2/gallerybinaryengineentry.cxx
@@ -112,7 +112,7 @@ GalleryThemeEntry* GalleryBinaryEngineEntry::CreateThemeEntry(const INetURLObjec
if (nId1 == COMPAT_FORMAT('G', 'A', 'L', 'R')
&& nId2 == COMPAT_FORMAT('E', 'S', 'R', 'V'))
{
- VersionCompat aCompat(*pIStm, StreamMode::READ);
+ VersionCompatRead aCompat(*pIStm);
pIStm->ReadUInt32(nThemeId);
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index e9ca797a3e8d..4ecc75567c82 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -735,12 +735,12 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
// In newer versions a 512 byte reserve buffer is located at the end,
// the data is located at the beginning of this buffer and are clamped
- // by a VersionCompat.
+ // by a VersionCompatRead.
if( !rIStm.eof() &&
nId1 == COMPAT_FORMAT( 'G', 'A', 'L', 'R' ) &&
nId2 == COMPAT_FORMAT( 'E', 'S', 'R', 'V' ) )
{
- VersionCompat aCompat( rIStm, StreamMode::READ );
+ VersionCompatRead aCompat(rIStm);
sal_uInt32 nTemp32;
bool bThemeNameFromResource = false;