sot/source/base/exchange.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 88c9155e51fae13ff0f24d0fa39bf87806f624d3
Author:     Mike Kaganski <[email protected]>
AuthorDate: Mon Nov 17 06:11:10 2025 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Mon Nov 17 07:25:45 2025 +0100

    Use static_assert instead of assert
    
    Change-Id: Ief4ec64b931ee423482f4178463e001d43446f76
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194085
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 0ef2a148c4d4..3097b43f13b0 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -200,7 +200,7 @@ const DataFlavor* FormatArray_Impl()
         /*149 MARKDOWN*/                  { u"text/markdown"_ustr, 
u"Markdown"_ustr, cppu::UnoType<Sequence<sal_Int8>>::get() },
         /*150 BIFF_12*/                   { 
u"application/x-openoffice-biff-12;windows_formatname=\"Biff12\""_ustr, 
u"Biff12"_ustr, cppu::UnoType<Sequence<sal_Int8>>::get() },
     };
-    assert(std::size(aInstance) == size_t(SotClipboardFormatId::USER_END) + 1);
+    static_assert(std::size(aInstance) == 
size_t(SotClipboardFormatId::USER_END) + 1);
     return &aInstance[0];
 };
 

Reply via email to