[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kcoreaddons] src/lib/util: Add missing assign operator
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2016-05-11 20:42:23
Message-ID: E1b0axb-0001eC-KV () scm ! kde ! org
[Download RAW message or body]

Git commit 39e9ee55d9cf8dbdbac11f592642f900f4c9e417 by Stephen Kelly.
Committed on 11/05/2016 at 20:42.
Pushed by skelly into branch 'master'.

Add missing assign operator

M  +6    -0    src/lib/util/kformat.cpp
M  +2    -0    src/lib/util/kformat.h

http://commits.kde.org/kcoreaddons/39e9ee55d9cf8dbdbac11f592642f900f4c9e417

diff --git a/src/lib/util/kformat.cpp b/src/lib/util/kformat.cpp
index e493ce0..f51d6b1 100644
--- a/src/lib/util/kformat.cpp
+++ b/src/lib/util/kformat.cpp
@@ -34,6 +34,12 @@ KFormat::KFormat(const KFormat &other)
 {
 }
 
+KFormat& KFormat::operator=(const KFormat &other)
+{
+    d = other.d;
+    return *this;
+}
+
 KFormat::~KFormat()
 {
 }
diff --git a/src/lib/util/kformat.h b/src/lib/util/kformat.h
index 845c3da..e00e5bd 100644
--- a/src/lib/util/kformat.h
+++ b/src/lib/util/kformat.h
@@ -159,6 +159,8 @@ public:
      */
     KFormat(const KFormat &other);
 
+    KFormat& operator=(const KFormat &other);
+
     /**
      * Destructor
      */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic