Commit 3b3a01cb authored by David Jarvie's avatar David Jarvie
Browse files

Fix cppcheck-suppress comments

parent 5a274a63
Pipeline #149389 passed with stage
in 3 minutes and 43 seconds
......@@ -46,7 +46,7 @@ public:
explicit DateTime(const QDateTime& dt);
/** Constructor for a date-time value. */
DateTime(const KADateTime& dt); //cppcheck-suppress noExplicitConstructor Allow implicit conversion
DateTime(const KADateTime& dt); //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
/** Copy constructor. */
DateTime(const DateTime& dt);
......
......@@ -192,7 +192,7 @@ public:
*
* @param tz time zone
*/
Spec(const QTimeZone& tz); //cppcheck-suppress noExplicitConstructor Allow implicit conversion
Spec(const QTimeZone& tz); //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
/**
* Constructs a time specification.
......@@ -201,7 +201,7 @@ public:
* @param utcOffset number of seconds to add to UTC to get the local
* time. Ignored if @p type is not @c OffsetFromUTC.
*/
Spec(SpecType type, int utcOffset = 0); //cppcheck-suppress noExplicitConstructor Allow implicit conversion
Spec(SpecType type, int utcOffset = 0); //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
/**
* Copy constructor.
......
......@@ -71,7 +71,7 @@ public:
};
KARecurrence();
KARecurrence(const KCalendarCore::Recurrence& r); //cppcheck-suppress noExplicitConstructor Allow implicit conversion
KARecurrence(const KCalendarCore::Recurrence& r); //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
KARecurrence(const KARecurrence& r);
~KARecurrence();
......
......@@ -21,8 +21,8 @@ class AutoQPointer : public QPointer<T>
{
public:
AutoQPointer() = default;
AutoQPointer(T* p) : QPointer<T>(p) {} //cppcheck-suppress noExplicitConstructor Allow implicit conversion
AutoQPointer(const QPointer<T>& p) : QPointer<T>(p) {} //cppcheck-suppress noExplicitConstructor Allow implicit conversion
AutoQPointer(T* p) : QPointer<T>(p) {} //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
AutoQPointer(const QPointer<T>& p) : QPointer<T>(p) {} //cppcheck-suppress noExplicitConstructor; Allow implicit conversion
~AutoQPointer() { delete this->data(); }
AutoQPointer<T>& operator=(const AutoQPointer<T>& p) { QPointer<T>::operator=(p); return *this; }
AutoQPointer<T>& operator=(T* p) { QPointer<T>::operator=(p); return *this; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment