include/basic/sbdef.hxx  |    5 ++---
 include/svtools/ehdl.hxx |    4 ++++
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit d6a656b8d91df7d53b77678e079bdefe9b27d755
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Feb 18 09:27:43 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Feb 18 13:44:22 2026 +0100

    Fix build
    
    C:\PROGRA~1\MICROS~18\COMMUN~1\VC\Tools\MSVCe0~1.357\Include\utility(472): 
error C2079: 'std::pair<TranslateId,ErrCode>::first' uses undefined struct 
'TranslateId'
    C:\PROGRA~1\MICROS~18\COMMUN~1\VC\Tools\MSVCe0~1.357\Include\utility(472): 
note: the template instantiation context (the oldest one first) is
    C:\lo    make[1]: *** [C:/lo/core/solenv/gbuild/LinkTarget.mk:338: 
C:/lo/build/workdir/CxxObject/sfx2/source/appl/appinit.o] Error 2
    C:\PROGRA~1\MICROS~18\COMMUN~1\VC\Tools\MSVCe0~1.357\Include\utility(472): 
error C2079: 'std::pair<TranslateId,ErrCode>::first' uses undefined struct 
'TranslateId'
    C:\PROGRA~1\MICROS~18\COMMUN~1\VC\Tools\MSVCe0~1.357\Include\utility(472): 
note: the template instantiation context (the oldest one first) is
    C:\lo    make[1]: *** [C:/lo/core/solenv/gbuild/LinkTarget.mk:338: 
C:/lo/build/workdir/CxxObject/sfx2/source/view/ipclient.o] Error 2
    
    Change-Id: Ia744dee615caec679218c35ffecec6e5ef663d42
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199597
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/include/basic/sbdef.hxx b/include/basic/sbdef.hxx
index 9e34ee1a17e6..98ecbcbf0139 100644
--- a/include/basic/sbdef.hxx
+++ b/include/basic/sbdef.hxx
@@ -21,10 +21,9 @@
 #include <basic/sbxdef.hxx>
 #include <rtl/ustring.hxx>
 #include <basic/basicdllapi.h>
+#include <comphelper/errcode.hxx>
 #include <o3tl/typed_flags_set.hxx>
-
-class ErrCode;
-struct TranslateId;
+#include <unotools/resmgr.hxx>
 
 // Returns type name for Basic type, array flag is ignored
 // implementation: basic/source/runtime/methods.cxx
diff --git a/include/svtools/ehdl.hxx b/include/svtools/ehdl.hxx
index a8e7481e8c92..22a37839c4d6 100644
--- a/include/svtools/ehdl.hxx
+++ b/include/svtools/ehdl.hxx
@@ -19,8 +19,12 @@
 
 #pragma once
 
+#include <sal/config.h>
+
+#include <comphelper/errcode.hxx>
 #include <svtools/svtdllapi.h>
 #include <svtools/svtresid.hxx>
+#include <unotools/resmgr.hxx>
 #include <vcl/errinf.hxx>
 
 typedef std::pair<TranslateId, ErrCode> ErrMsgCode;

Reply via email to