summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-13 09:56:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-13 10:17:26 +0000
commit8325fcb56d014c12f35808ae6ad17f68b7a1cdd2 (patch)
tree295fe60b2a4926f1f76e734a59bd08d6601ec386 /sc/qa
parent5a616ca96c41b1e3d6dc2bca370f0797dfef7511 (diff)
cppcheck: noExplicitConstructor
Change-Id: Ife26f55c28c4631aec4ba4105225bfca72da8bff
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/helper/qahelper.hxx2
-rw-r--r--sc/qa/unit/helper/shared_test_impl.hxx2
-rw-r--r--sc/qa/unit/helper/sorthelper.hxx2
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx2
-rw-r--r--sc/qa/unit/ucalc.cxx4
5 files changed, 6 insertions, 6 deletions
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index 2a33b6562819..1dd1b9c40a43 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -218,7 +218,7 @@ protected:
public:
static const FileFormat* getFileFormats() { return aFileFormats; }
- ScBootstrapFixture( const OUString& rsBaseString );
+ explicit ScBootstrapFixture( const OUString& rsBaseString );
virtual ~ScBootstrapFixture();
void createFileURL(const OUString& aFileBase, const OUString& aFileExtension, OUString& rFilePath);
diff --git a/sc/qa/unit/helper/shared_test_impl.hxx b/sc/qa/unit/helper/shared_test_impl.hxx
index 7a92c4ec0a36..0c274816c20c 100644
--- a/sc/qa/unit/helper/shared_test_impl.hxx
+++ b/sc/qa/unit/helper/shared_test_impl.hxx
@@ -17,7 +17,7 @@
struct FindCondFormatByEnclosingRange
{
- FindCondFormatByEnclosingRange(const ScRange& rRange):
+ explicit FindCondFormatByEnclosingRange(const ScRange& rRange):
mrRange(rRange) {}
bool operator()(const std::unique_ptr<ScConditionalFormat>& pFormat)
diff --git a/sc/qa/unit/helper/sorthelper.hxx b/sc/qa/unit/helper/sorthelper.hxx
index 2e8110727648..d094e0b16113 100644
--- a/sc/qa/unit/helper/sorthelper.hxx
+++ b/sc/qa/unit/helper/sorthelper.hxx
@@ -20,7 +20,7 @@
class SortTypeSetter {
bool mbSortRefUpdate;
public:
- SortTypeSetter(bool bSortRefUpdate)
+ explicit SortTypeSetter(bool bSortRefUpdate)
{
mbSortRefUpdate = changeTo(bSortRefUpdate);
}
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index cdb0aedf1dc7..f3abf7de5e7b 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -1738,7 +1738,7 @@ class FindDimByName : std::unary_function<const ScDPSaveDimension*, bool>
{
OUString maName;
public:
- FindDimByName(const OUString& rName) : maName(rName) {}
+ explicit FindDimByName(const OUString& rName) : maName(rName) {}
bool operator() (const ScDPSaveDimension* p) const
{
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index f5871f7aa339..4700c6c4a39d 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -116,7 +116,7 @@ class MeasureTimeSwitch
double& mrDiff;
TimeValue maTimeBefore;
public:
- MeasureTimeSwitch(double& rDiff) : mrDiff(rDiff)
+ explicit MeasureTimeSwitch(double& rDiff) : mrDiff(rDiff)
{
mrDiff = 9999.0;
osl_getSystemTime(&maTimeBefore);
@@ -3489,7 +3489,7 @@ void Test::testCopyPasteSkipEmpty()
{
ScDocument* mpDoc;
- TestRange( ScDocument* pDoc ) : mpDoc(pDoc) {}
+ explicit TestRange( ScDocument* pDoc ) : mpDoc(pDoc) {}
bool checkRange( const ScAddress& rPos, const Check* p, const Check* pEnd )
{