summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-24 10:09:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-24 10:35:44 +0000
commit70b09d932225027d531c9a95317320174f8ad687 (patch)
treeec36c7d4927721c59d22830385517770e820d98b /i18npool
parentcbc5dc14d6bb795a9c2b54d624b10770a2a95a00 (diff)
cppcheck: noExplicitConstructor
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/calendar/calendar_jewish.cxx4
-rw-r--r--i18npool/source/localedata/LocaleNode.hxx2
-rw-r--r--i18npool/source/search/textsearch.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index 3073c37497ef..19b62d3229e5 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -136,7 +136,7 @@ private:
public:
HebrewDate(sal_Int32 m, sal_Int32 d, sal_Int32 y) { month = m; day = d; year = y; }
- HebrewDate(sal_Int32 d) { // Computes the Hebrew date from the absolute date.
+ explicit HebrewDate(sal_Int32 d) { // Computes the Hebrew date from the absolute date.
year = (d + HebrewEpoch) / 366; // Approximation from below.
// Search forward for year from the approximation.
while (d >= HebrewDate(7,1,year + 1))
@@ -214,7 +214,7 @@ private:
public:
GregorianDate(int m, int d, int y) { month = m; day = d; year = y; }
- GregorianDate(int d) { // Computes the Gregorian date from the absolute date.
+ explicit GregorianDate(int d) { // Computes the Gregorian date from the absolute date.
// Search forward year by year from approximate year
year = d/366;
while (d >= GregorianDate(1,1,year+1))
diff --git a/i18npool/source/localedata/LocaleNode.hxx b/i18npool/source/localedata/LocaleNode.hxx
index 142cb2416009..226d2577e6e0 100644
--- a/i18npool/source/localedata/LocaleNode.hxx
+++ b/i18npool/source/localedata/LocaleNode.hxx
@@ -71,7 +71,7 @@ class Attr {
Sequence <OUString> value;
public:
- Attr (const Reference< XAttributeList > & attr);
+ explicit Attr (const Reference< XAttributeList > & attr);
const OUString& getValueByName (const sal_Char *str) const;
sal_Int32 getLength() const;
const OUString& getTypeByIndex (sal_Int32 idx) const;
diff --git a/i18npool/source/search/textsearch.hxx b/i18npool/source/search/textsearch.hxx
index 7b42fe7368a8..5c2ef0312290 100644
--- a/i18npool/source/search/textsearch.hxx
+++ b/i18npool/source/search/textsearch.hxx
@@ -113,7 +113,7 @@ class TextSearch: public cppu::WeakImplHelper
throw(css::uno::RuntimeException);
public:
- TextSearch(
+ explicit TextSearch(
const css::uno::Reference < css::uno::XComponentContext >& rxContext );
virtual ~TextSearch();