summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 12:24:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 15:15:14 +0200
commitc137c2a46cd2276938d572c97fb111b9aa31cdfd (patch)
tree9fe4c1809e836f3c177fd930b632af6cad5407c0 /sc/inc
parenttdf#111934 xmloff: ODF import: self-referential conditional style crash (diff)
downloadcore-c137c2a46cd2276938d572c97fb111b9aa31cdfd.tar.gz
core-c137c2a46cd2276938d572c97fb111b9aa31cdfd.zip
loplugin:constparam in sc part5
Change-Id: Iba249d4d8f7cc686941106983031bae53c7528e1 Reviewed-on: https://gerrit.libreoffice.org/41510 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/arealink.hxx2
-rw-r--r--sc/inc/datamapper.hxx2
-rw-r--r--sc/inc/externalrefmgr.hxx6
-rw-r--r--sc/inc/tablink.hxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/arealink.hxx b/sc/inc/arealink.hxx
index 69b6b5a8d40f..5391d320ce09 100644
--- a/sc/inc/arealink.hxx
+++ b/sc/inc/arealink.hxx
@@ -42,7 +42,7 @@ private:
bool bAddUndo;
bool bInCreate;
bool bDoInsert; // is set to FALSE for first update
- static bool FindExtRange( ScRange& rRange, ScDocument* pSrcDoc, const OUString& rAreaName );
+ static bool FindExtRange( ScRange& rRange, const ScDocument* pSrcDoc, const OUString& rAreaName );
public:
ScAreaLink( SfxObjectShell* pShell, const OUString& rFile,
diff --git a/sc/inc/datamapper.hxx b/sc/inc/datamapper.hxx
index 55390fc5a39b..f872f50143b8 100644
--- a/sc/inc/datamapper.hxx
+++ b/sc/inc/datamapper.hxx
@@ -85,7 +85,7 @@ public:
const OUString& getID() const;
double getUpdateFrequency() const;
OUString getDBName() const;
- void setDBData(ScDBData* pDBData);
+ void setDBData(const ScDBData* pDBData);
void refresh(ScDocument* pDoc, bool bDeterministic = false);
};
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 5a63a0030797..30bc8136b034 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -398,7 +398,7 @@ public:
class SC_DLLPUBLIC ApiGuard
{
public:
- ApiGuard(ScDocument* pDoc);
+ ApiGuard(const ScDocument* pDoc);
~ApiGuard();
private:
ScExternalRefManager* mpMgr;
@@ -745,7 +745,7 @@ private:
* @return range token array
*/
ScExternalRefCache::TokenArrayRef getDoubleRefTokensFromSrcDoc(
- ScDocument* pSrcDoc, const OUString& rTabName, ScRange& rRange,
+ const ScDocument* pSrcDoc, const OUString& rTabName, ScRange& rRange,
::std::vector<ScExternalRefCache::SingleRangeData>& rCacheData);
/**
@@ -761,7 +761,7 @@ private:
* @return range name token array
*/
static ScExternalRefCache::TokenArrayRef getRangeNameTokensFromSrcDoc(
- sal_uInt16 nFileId, ScDocument* pSrcDoc, OUString& rName);
+ sal_uInt16 nFileId, const ScDocument* pSrcDoc, OUString& rName);
ScDocument* getInMemorySrcDocument(sal_uInt16 nFileId);
ScDocument* getSrcDocument(sal_uInt16 nFileId);
diff --git a/sc/inc/tablink.hxx b/sc/inc/tablink.hxx
index 6684a5ff3b43..043f10c1b708 100644
--- a/sc/inc/tablink.hxx
+++ b/sc/inc/tablink.hxx
@@ -96,7 +96,7 @@ public:
*/
static SfxMedium* CreateMedium( const OUString& rFileName, std::shared_ptr<const SfxFilter> const & pFilter, const OUString& rOptions );
- static OUString GetOptions( SfxMedium& rMedium );
+ static OUString GetOptions( const SfxMedium& rMedium );
/** Returns the filter name and options from a file name.
@param bWithContent