include/svx/galmisc.hxx                    |    2 --
 svx/source/gallery2/galleryfilestorage.cxx |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit debcc7e27decef605d1490c979a5e56613b1ce2b
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Feb 23 13:37:00 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Feb 23 15:51:49 2026 +0100

    STREAMBUF_SIZE constant is only used in one place
    
    Change-Id: Ic2ddcc653a99eb7d23aa06941d74f138c343a2e3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200052
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/include/svx/galmisc.hxx b/include/svx/galmisc.hxx
index 6e7c5b851d89..aa70aa1a60d4 100644
--- a/include/svx/galmisc.hxx
+++ b/include/svx/galmisc.hxx
@@ -63,8 +63,6 @@ enum class SgaObjKind
 
 #define ID_IMAPINFO             2
 
-#define STREAMBUF_SIZE          16384L
-
 enum class GalleryGraphicImportRet
 {
     IMPORT_NONE, IMPORT_FILE
diff --git a/svx/source/gallery2/galleryfilestorage.cxx 
b/svx/source/gallery2/galleryfilestorage.cxx
index afd24eac29a4..5e2a14c15665 100644
--- a/svx/source/gallery2/galleryfilestorage.cxx
+++ b/svx/source/gallery2/galleryfilestorage.cxx
@@ -278,7 +278,7 @@ bool GalleryFileStorage::readModel(const GalleryObject* 
pObject, SdrModel& rMode
 
         if (xInputStream.is() && !xInputStream->GetError())
         {
-            xInputStream->SetBufferSize(STREAMBUF_SIZE);
+            xInputStream->SetBufferSize(16384);
             bRet = GallerySvDrawImport(*xInputStream, rModel);
             xInputStream->SetBufferSize(0);
         }

Reply via email to