sc/source/core/data/clipcontext.cxx                    |    2 +-
 sc/source/core/data/column.cxx                         |    3 +--
 sc/source/core/data/column3.cxx                        |    4 ++--
 sc/source/core/data/document.cxx                       |    3 +--
 sc/source/core/data/document10.cxx                     |    6 +++---
 sc/source/core/data/table4.cxx                         |    2 +-
 sc/source/ui/unoobj/chart2uno.cxx                      |    2 +-
 xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx |    2 +-
 8 files changed, 11 insertions(+), 13 deletions(-)

New commits:
commit 783f943ebaf84731767a176012f4329dc3ae39d5
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Aug 26 08:50:57 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Aug 28 13:13:34 2024 +0200

    cid#1555526 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1555615 COPY_INSTEAD_OF_MOVE
    cid#1555637 COPY_INSTEAD_OF_MOVE
    cid#1555640 COPY_INSTEAD_OF_MOVE
    cid#1555768 COPY_INSTEAD_OF_MOVE
    cid#1555840 COPY_INSTEAD_OF_MOVE
    cid#1556731 COPY_INSTEAD_OF_MOVE
    cid#1556751 COPY_INSTEAD_OF_MOVE
    cid#1556807 COPY_INSTEAD_OF_MOVE
    cid#1558026 COPY_INSTEAD_OF_MOVE
    cid#1558032 COPY_INSTEAD_OF_MOVE
    
    just silence these
    
    Change-Id: I8a120bb0badc8d2987c41768ec116a78324e9821
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172515
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/core/data/clipcontext.cxx 
b/sc/source/core/data/clipcontext.cxx
index bccbdf0a086e..579f7928b57e 100644
--- a/sc/source/core/data/clipcontext.cxx
+++ b/sc/source/core/data/clipcontext.cxx
@@ -151,7 +151,7 @@ public:
 
 void CopyFromClipContext::startListeningFormulas()
 {
-    auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(mrDestDoc);
+    const auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(mrDestDoc);
     sc::StartListeningContext aStartCxt(mrDestDoc, pSet);
     sc::EndListeningContext aEndCxt(mrDestDoc, pSet, nullptr);
 
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index f744f741f1b5..2c1db80ce2c3 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2156,8 +2156,7 @@ class UpdateRefOnNonCopy
 
         // Make sure that the start and end listening contexts share the
         // same block position set, else an invalid iterator may ensue.
-        auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(mpCxt->mrDoc);
-
+        const auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(mpCxt->mrDoc);
         sc::StartListeningContext aStartCxt(mpCxt->mrDoc, pPosSet);
         sc::EndListeningContext aEndCxt(mpCxt->mrDoc, pPosSet, &aOldCode);
 
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 26fcd36de0ba..1b4ccafa5d54 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -437,7 +437,7 @@ void ScColumn::StartListeningUnshared( const 
std::vector<SCROW>& rNewSharedRows
     if (rNewSharedRows.empty() || rDoc.IsDelayedFormulaGrouping())
         return;
 
-    auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(rDoc);
+    const auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(rDoc);
     sc::StartListeningContext aStartCxt(rDoc, pPosSet);
     sc::EndListeningContext aEndCxt(rDoc, pPosSet);
     if (rNewSharedRows.size() >= 2)
@@ -708,7 +708,7 @@ void ScColumn::AttachNewFormulaCell(
     {
         case sc::ConvertToGroupListening:
         {
-            auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(rDocument);
+            const auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(rDocument);
             sc::StartListeningContext aStartCxt(rDocument, pPosSet);
             sc::EndListeningContext aEndCxt(rDocument, pPosSet);
             SCROW nStartRow, nEndRow;
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index b631e74a6a22..bbce2d15031b 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2627,8 +2627,7 @@ void ScDocument::StartListeningFromClip( SCCOL nCol1, 
SCROW nRow1,
     if (!(nInsFlag & InsertDeleteFlags::CONTENTS))
         return;
 
-    auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
-
+    const auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
     sc::StartListeningContext aStartCxt(*this, pSet);
     sc::EndListeningContext aEndCxt(*this, pSet, nullptr);
 
diff --git a/sc/source/core/data/document10.cxx 
b/sc/source/core/data/document10.cxx
index a958a9b1543c..e41a3affd91a 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -225,7 +225,7 @@ void ScDocument::SwapNonEmpty( sc::TableValues& rValues )
     if (!rRange.IsValid())
         return;
 
-    auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
+    const auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
     sc::StartListeningContext aStartCxt(*this, pPosSet);
     sc::EndListeningContext aEndCxt(*this, pPosSet);
 
@@ -409,7 +409,7 @@ void ScDocument::EnableDelayStartListeningFormulaCells( 
ScColumn* column, bool d
         {
             if( it->second.first != -1 )
             {
-                auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(*this);
+                const auto pPosSet = 
std::make_shared<sc::ColumnBlockPositionSet>(*this);
                 sc::StartListeningContext aStartCxt(*this, pPosSet);
                 sc::EndListeningContext aEndCxt(*this, pPosSet);
                 column->StartListeningFormulaCells(aStartCxt, aEndCxt, 
it->second.first, it->second.second);
@@ -563,7 +563,7 @@ void ScDocument::StartAllListeners( const ScRange& rRange )
     if (IsClipOrUndo() || GetNoListening())
         return;
 
-    auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
+    const auto pPosSet = std::make_shared<sc::ColumnBlockPositionSet>(*this);
     sc::StartListeningContext aStartCxt(*this, pPosSet);
     sc::EndListeningContext aEndCxt(*this, pPosSet);
 
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 56588d6df5fb..9f33d0dc6d24 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1808,7 +1808,7 @@ void ScTable::FillFormulaVertical(
     aCol[nCol].DeleteRanges(aSpans, InsertDeleteFlags::VALUE | 
InsertDeleteFlags::DATETIME | InsertDeleteFlags::STRING | 
InsertDeleteFlags::FORMULA | InsertDeleteFlags::OUTLINE);
     aCol[nCol].CloneFormulaCell(rSrcCell, sc::CellTextAttr(), aSpans);
 
-    auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(rDocument);
+    const auto pSet = std::make_shared<sc::ColumnBlockPositionSet>(rDocument);
     sc::StartListeningContext aStartCxt(rDocument, pSet);
     sc::EndListeningContext aEndCxt(rDocument, pSet);
 
diff --git a/sc/source/ui/unoobj/chart2uno.cxx 
b/sc/source/ui/unoobj/chart2uno.cxx
index e82c5c2f8b6e..11519b2ff3ad 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -925,7 +925,7 @@ private:
             return false;
         bool bExternal = ScRefTokenHelper::isExternalRef(pToken);
         sal_uInt16 nFileId = bExternal ? pToken->GetIndex() : 0;
-        svl::SharedString aTabName = bExternal ? pToken->GetString() : 
svl::SharedString::getEmptyString();
+        const svl::SharedString aTabName = bExternal ? pToken->GetString() : 
svl::SharedString::getEmptyString();
 
         // In saving to XML, we don't prepend address with '$'.
         setRelative(aData.Ref1);
commit 4f12805f6e2d5bf68278dd6ab95b8111f36d07eb
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Aug 26 10:09:10 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Aug 28 13:13:22 2024 +0200

    cid#1606710 Overflowed constant
    
    Change-Id: Iaf8b6f7ccd5c8dc39901fee4e386c6e0b9c6d4e8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172514
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx 
b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx
index aa1fd6092e2c..b8268e9f0b3b 100644
--- a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx
+++ b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx
@@ -101,7 +101,7 @@ void XMLIndexChapterInfoEntryContext::startFastElement(
             case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL):
             {
                 sal_Int32 nTmp;
-                if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, 
SAL_MAX_UINT16))
+                if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, 
SAL_MAX_INT16))
                 {
 //control on range is carried out in the UNO level
                     nOutlineLevel = static_cast<sal_uInt16>(nTmp);

Reply via email to