summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/attrdlg/tabpages.cxx4
-rw-r--r--sc/source/ui/dbgui/validate.cxx4
-rw-r--r--sc/source/ui/inc/tabpages.hxx2
-rw-r--r--sc/source/ui/inc/tphf.hxx4
-rw-r--r--sc/source/ui/inc/tptable.hxx2
-rw-r--r--sc/source/ui/inc/validate.hxx2
-rw-r--r--sc/source/ui/pagedlg/tphf.cxx4
-rw-r--r--sc/source/ui/pagedlg/tptable.cxx4
8 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx
index 07a137bfc639..71a30d40315c 100644
--- a/sc/source/ui/attrdlg/tabpages.cxx
+++ b/sc/source/ui/attrdlg/tabpages.cxx
@@ -31,7 +31,7 @@
// STATIC DATA -----------------------------------------------------------
-static sal_uInt16 pProtectionRanges[] =
+static const sal_uInt16 pProtectionRanges[] =
{
SID_SCATTR_PROTECTION,
SID_SCATTR_PROTECTION,
@@ -63,7 +63,7 @@ ScTabPageProtection::ScTabPageProtection(Window* pParent, const SfxItemSet& rCor
m_pBtnHidePrint->SetClickHdl( LINK( this, ScTabPageProtection, ButtonClickHdl ) );
}
-sal_uInt16* ScTabPageProtection::GetRanges()
+const sal_uInt16* ScTabPageProtection::GetRanges()
{
return pProtectionRanges;
}
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx
index 6efd5a53c095..a89fa8131661 100644
--- a/sc/source/ui/dbgui/validate.cxx
+++ b/sc/source/ui/dbgui/validate.cxx
@@ -73,7 +73,7 @@
#define SC_VALIDDLG_DATA_INVALIDRANGE 7
-static sal_uInt16 pValueRanges[] =
+static const sal_uInt16 pValueRanges[] =
{
FID_VALID_MODE, FID_VALID_ERRTEXT,
FID_VALID_LISTTYPE, FID_VALID_LISTTYPE,
@@ -379,7 +379,7 @@ SfxTabPage* ScTPValidationValue::Create( Window* pParent, const SfxItemSet& rArg
return( new ScTPValidationValue( pParent, rArgSet ) );
}
-sal_uInt16* ScTPValidationValue::GetRanges()
+const sal_uInt16* ScTPValidationValue::GetRanges()
{
return pValueRanges;
}
diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx
index 393903827685..e5780f45d807 100644
--- a/sc/source/ui/inc/tabpages.hxx
+++ b/sc/source/ui/inc/tabpages.hxx
@@ -29,7 +29,7 @@ class ScTabPageProtection : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rAttrSet );
- static sal_uInt16* GetRanges ();
+ static const sal_uInt16* GetRanges ();
virtual bool FillItemSet ( SfxItemSet& rCoreAttrs ) SAL_OVERRIDE;
virtual void Reset ( const SfxItemSet& ) SAL_OVERRIDE;
diff --git a/sc/source/ui/inc/tphf.hxx b/sc/source/ui/inc/tphf.hxx
index b7f95b4adfb4..733242df0229 100644
--- a/sc/source/ui/inc/tphf.hxx
+++ b/sc/source/ui/inc/tphf.hxx
@@ -64,7 +64,7 @@ class ScHeaderPage : public ScHFPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
- static sal_uInt16* GetRanges();
+ static const sal_uInt16* GetRanges();
private:
ScHeaderPage( Window* pParent, const SfxItemSet& rSet );
@@ -74,7 +74,7 @@ class ScFooterPage : public ScHFPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
- static sal_uInt16* GetRanges();
+ static const sal_uInt16* GetRanges();
private:
ScFooterPage( Window* pParent, const SfxItemSet& rSet );
diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx
index 2025aabf6ced..c04c3be2ba14 100644
--- a/sc/source/ui/inc/tptable.hxx
+++ b/sc/source/ui/inc/tptable.hxx
@@ -30,7 +30,7 @@ class ScTablePage : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rCoreSet );
- static sal_uInt16* GetRanges ();
+ static const sal_uInt16* GetRanges ();
virtual bool FillItemSet ( SfxItemSet& rCoreSet ) SAL_OVERRIDE;
virtual void Reset ( const SfxItemSet& rCoreSet ) SAL_OVERRIDE;
using SfxTabPage::DeactivatePage;
diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx
index 9e0e3024c5f1..b7b6cafee94a 100644
--- a/sc/source/ui/inc/validate.hxx
+++ b/sc/source/ui/inc/validate.hxx
@@ -180,7 +180,7 @@ public:
explicit ScTPValidationValue( Window* pParent, const SfxItemSet& rArgSet );
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rArgSet );
- static sal_uInt16* GetRanges();
+ static const sal_uInt16* GetRanges();
virtual bool FillItemSet( SfxItemSet& rArgSet ) SAL_OVERRIDE;
virtual void Reset( const SfxItemSet& rArgSet ) SAL_OVERRIDE;
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index ed0ca2143076..5134f38d34cb 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -260,7 +260,7 @@ SfxTabPage* ScHeaderPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
return ( new ScHeaderPage( pParent, rCoreSet ) );
}
-sal_uInt16* ScHeaderPage::GetRanges()
+const sal_uInt16* ScHeaderPage::GetRanges()
{
return SvxHeaderPage::GetRanges();
}
@@ -279,7 +279,7 @@ SfxTabPage* ScFooterPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
return ( new ScFooterPage( pParent, rCoreSet ) );
}
-sal_uInt16* ScFooterPage::GetRanges()
+const sal_uInt16* ScFooterPage::GetRanges()
{
return SvxHeaderPage::GetRanges();
}
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx
index c00dffb0d9cc..7a9aa96326de 100644
--- a/sc/source/ui/pagedlg/tptable.cxx
+++ b/sc/source/ui/pagedlg/tptable.cxx
@@ -33,7 +33,7 @@
// Static Data
-static sal_uInt16 pPageTableRanges[] =
+static const sal_uInt16 pPageTableRanges[] =
{
ATTR_PAGE_NOTES, ATTR_PAGE_FIRSTPAGENO,
0
@@ -130,7 +130,7 @@ ScTablePage::~ScTablePage()
{
}
-sal_uInt16* ScTablePage::GetRanges()
+const sal_uInt16* ScTablePage::GetRanges()
{
return pPageTableRanges;
}