From a72d8faef5be5dadb39f7f3cdd252930ba43ab18 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 6 Jan 2020 22:08:47 +1000 Subject: [PATCH] Fix dox --- .../numericformats/qgsbearingnumericformat.sip.in | 2 +- src/core/numericformats/qgsbearingnumericformat.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/core/auto_generated/numericformats/qgsbearingnumericformat.sip.in b/python/core/auto_generated/numericformats/qgsbearingnumericformat.sip.in index 95269ce6b43..9063bb1a142 100644 --- a/python/core/auto_generated/numericformats/qgsbearingnumericformat.sip.in +++ b/python/core/auto_generated/numericformats/qgsbearingnumericformat.sip.in @@ -32,7 +32,6 @@ A numeric formatter which returns a text representation of a direction/bearing. Default constructor %End - virtual QString id() const; virtual QString formatDouble( double value, const QgsNumericFormatContext &context ) const; @@ -60,6 +59,7 @@ described in the returned strings. .. seealso:: :py:func:`directionFormat` %End + private: QgsBearingNumericFormat( const QgsBearingNumericFormat &other ); }; diff --git a/src/core/numericformats/qgsbearingnumericformat.h b/src/core/numericformats/qgsbearingnumericformat.h index 7ac3934eb85..a3705e79af4 100644 --- a/src/core/numericformats/qgsbearingnumericformat.h +++ b/src/core/numericformats/qgsbearingnumericformat.h @@ -45,9 +45,6 @@ class CORE_EXPORT QgsBearingNumericFormat : public QgsBasicNumericFormat */ QgsBearingNumericFormat(); - QgsBearingNumericFormat( const QgsBearingNumericFormat & ) = delete; - QgsBearingNumericFormat &operator=( const QgsBearingNumericFormat & ) = delete; - QString id() const override; QString formatDouble( double value, const QgsNumericFormatContext &context ) const override; QgsNumericFormat *clone() const override SIP_FACTORY; @@ -70,6 +67,11 @@ class CORE_EXPORT QgsBearingNumericFormat : public QgsBasicNumericFormat */ void setDirectionFormat( const FormatDirectionOption &format ); + //! QgsBearingNumericFormat cannot be copied + QgsBearingNumericFormat( const QgsBearingNumericFormat & ) = delete; + //! QgsBearingNumericFormat cannot be copied + QgsBearingNumericFormat &operator=( const QgsBearingNumericFormat & ) = delete; + private: #ifdef SIP_RUN