summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-01 09:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 11:56:43 +0200
commit4969f4c0d3e2581aaa8a5b5a5769840fa6b6f8ea (patch)
treeeb42ab5be5d8c5ca3d23b686a8781c28822381b4 /include/test
parentd5cc52fec12e3c8d1c3561f172d3e1c5434290b3 (diff)
loplugin:constfields in sw
Change-Id: I1eb6583bb9ec815bc0564b0d7c676f5b1fb9045f Reviewed-on: https://gerrit.libreoffice.org/61177 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/bootstrapfixture.hxx4
-rw-r--r--include/test/container/xelementaccess.hxx2
-rw-r--r--include/test/container/xindexaccess.hxx2
-rw-r--r--include/test/container/xnamecontainer.hxx2
-rw-r--r--include/test/container/xnamed.hxx2
-rw-r--r--include/test/container/xnamereplace.hxx2
-rw-r--r--include/test/screenshot_test.hxx3
-rw-r--r--include/test/sheet/xformulaquery.hxx8
-rw-r--r--include/test/sheet/xnamedranges.hxx2
-rw-r--r--include/test/sheet/xspreadsheetdocument.hxx2
-rw-r--r--include/test/sheet/xspreadsheets2.hxx3
-rw-r--r--include/test/unoapi_test.hxx2
-rw-r--r--include/test/util/xreplaceable.hxx4
-rw-r--r--include/test/util/xsearchable.hxx4
14 files changed, 18 insertions, 24 deletions
diff --git a/include/test/bootstrapfixture.hxx b/include/test/bootstrapfixture.hxx
index a70dca82d6e6..986ff1a7578f 100644
--- a/include/test/bootstrapfixture.hxx
+++ b/include/test/bootstrapfixture.hxx
@@ -43,8 +43,8 @@ enum ValidationFormat
// run of unit tests ...
class OOO_DLLPUBLIC_TEST BootstrapFixture : public BootstrapFixtureBase
{
- bool m_bNeedUCB;
- bool m_bAssertOnDialog;
+ bool const m_bNeedUCB;
+ bool const m_bAssertOnDialog;
public:
DECL_STATIC_LINK( BootstrapFixture, ImplInitFilterHdl, ConvertData&, bool );
diff --git a/include/test/container/xelementaccess.hxx b/include/test/container/xelementaccess.hxx
index d1830ef429ed..efdca128fe79 100644
--- a/include/test/container/xelementaccess.hxx
+++ b/include/test/container/xelementaccess.hxx
@@ -28,7 +28,7 @@ public:
virtual ~XElementAccess() {}
private:
- css::uno::Type maType;
+ css::uno::Type const maType;
};
}
diff --git a/include/test/container/xindexaccess.hxx b/include/test/container/xindexaccess.hxx
index 0496ffae9158..415008880e52 100644
--- a/include/test/container/xindexaccess.hxx
+++ b/include/test/container/xindexaccess.hxx
@@ -29,7 +29,7 @@ protected:
~XIndexAccess() {}
private:
- sal_Int32 mnItems;
+ sal_Int32 const mnItems;
};
}
diff --git a/include/test/container/xnamecontainer.hxx b/include/test/container/xnamecontainer.hxx
index 14239382340b..9ff614473795 100644
--- a/include/test/container/xnamecontainer.hxx
+++ b/include/test/container/xnamecontainer.hxx
@@ -31,7 +31,7 @@ public:
virtual ~XNameContainer() {}
private:
- OUString maNameToRemove;
+ OUString const maNameToRemove;
};
}
diff --git a/include/test/container/xnamed.hxx b/include/test/container/xnamed.hxx
index e32880685438..f9f708114f68 100644
--- a/include/test/container/xnamed.hxx
+++ b/include/test/container/xnamed.hxx
@@ -27,7 +27,7 @@ public:
virtual css::uno::Reference< css::uno::XInterface > init() = 0;
private:
- OUString maTestName;
+ OUString const maTestName;
};
diff --git a/include/test/container/xnamereplace.hxx b/include/test/container/xnamereplace.hxx
index 9ce6dfd7192a..2d52fc2037eb 100644
--- a/include/test/container/xnamereplace.hxx
+++ b/include/test/container/xnamereplace.hxx
@@ -31,7 +31,7 @@ public:
virtual ~XNameReplace() {}
private:
- OUString maTestReplacementName;
+ OUString const maTestReplacementName;
};
diff --git a/include/test/screenshot_test.hxx b/include/test/screenshot_test.hxx
index 7bf8874a1361..74bcfc721d53 100644
--- a/include/test/screenshot_test.hxx
+++ b/include/test/screenshot_test.hxx
@@ -24,9 +24,6 @@ typedef std::map< OString, sal_uInt32 > mapType;
class OOO_DLLPUBLIC_TEST ScreenshotTest : public test::BootstrapFixture, public unotest::MacrosTest
{
private:
- /// the target directory for screenshots
- OUString m_aScreenshotDirectory;
-
/// The current UI language
OUString maCurrentLanguage;
diff --git a/include/test/sheet/xformulaquery.hxx b/include/test/sheet/xformulaquery.hxx
index a306a6838cf4..7beb944e192c 100644
--- a/include/test/sheet/xformulaquery.hxx
+++ b/include/test/sheet/xformulaquery.hxx
@@ -45,10 +45,10 @@ protected:
private:
css::uno::Reference<css::table::XCell> m_xCell;
- css::table::CellRangeAddress m_aCellRangeAddressDependents;
- css::table::CellRangeAddress m_aCellRangeAddressPrecedents;
- unsigned int m_nIdxDependents;
- unsigned int m_nIdxPrecedents;
+ css::table::CellRangeAddress const m_aCellRangeAddressDependents;
+ css::table::CellRangeAddress const m_aCellRangeAddressPrecedents;
+ unsigned int const m_nIdxDependents;
+ unsigned int const m_nIdxPrecedents;
};
} // namespace apitest
diff --git a/include/test/sheet/xnamedranges.hxx b/include/test/sheet/xnamedranges.hxx
index e3ba9e5f57da..9e750c333f45 100644
--- a/include/test/sheet/xnamedranges.hxx
+++ b/include/test/sheet/xnamedranges.hxx
@@ -38,7 +38,7 @@ protected:
css::uno::Reference< css::sheet::XSpreadsheet > xSheet;
private:
- OUString maNameToRemove;
+ OUString const maNameToRemove;
};
}
diff --git a/include/test/sheet/xspreadsheetdocument.hxx b/include/test/sheet/xspreadsheetdocument.hxx
index 647da836abd7..76dd7ba2d1c8 100644
--- a/include/test/sheet/xspreadsheetdocument.hxx
+++ b/include/test/sheet/xspreadsheetdocument.hxx
@@ -28,7 +28,7 @@ protected:
~XSpreadsheetDocument() {}
private:
- sal_Int32 mnSheets;
+ sal_Int32 const mnSheets;
};
}
diff --git a/include/test/sheet/xspreadsheets2.hxx b/include/test/sheet/xspreadsheets2.hxx
index bb00b95497db..345fa8b37eb7 100644
--- a/include/test/sheet/xspreadsheets2.hxx
+++ b/include/test/sheet/xspreadsheets2.hxx
@@ -54,9 +54,6 @@ private:
css::uno::Reference< css::sheet::XSpreadsheetDocument> xDestDoc;
css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet;
css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet;
- OUString aSrcSheetName;
- OUString aSrcFileName;
- OUString aDestFileBase;
};
}
diff --git a/include/test/unoapi_test.hxx b/include/test/unoapi_test.hxx
index 32c20997808f..7d1c64fc50e1 100644
--- a/include/test/unoapi_test.hxx
+++ b/include/test/unoapi_test.hxx
@@ -32,7 +32,7 @@ protected:
private:
- OUString m_aBaseString;
+ OUString const m_aBaseString;
};
#endif // INCLUDED_TEST_UNOAPI_TEST_HXX
diff --git a/include/test/util/xreplaceable.hxx b/include/test/util/xreplaceable.hxx
index 9f33feeb5d9d..59716f013eae 100644
--- a/include/test/util/xreplaceable.hxx
+++ b/include/test/util/xreplaceable.hxx
@@ -29,8 +29,8 @@ protected:
~XReplaceable() {}
private:
- OUString maSearchString;
- OUString maReplaceString;
+ OUString const maSearchString;
+ OUString const maReplaceString;
};
}
diff --git a/include/test/util/xsearchable.hxx b/include/test/util/xsearchable.hxx
index 99369c854be0..cb612829e1e1 100644
--- a/include/test/util/xsearchable.hxx
+++ b/include/test/util/xsearchable.hxx
@@ -28,8 +28,8 @@ public:
virtual css::uno::Reference< css::uno::XInterface > init() = 0;
private:
- OUString maSearchString;
- sal_Int32 mnCount;
+ OUString const maSearchString;
+ sal_Int32 const mnCount;
};
}