[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kdeutil/kde/util
From: Tim Jansen <tim () tjansen ! de>
Date: 2003-11-03 0:35:21
[Download RAW message or body]
CVS commit by tjansen:
use operator= instead of copy()
M +2 -6 exception.cpp 1.2
M +0 -6 exception.h 1.2
--- kdenonbeta/kdeutil/kde/util/exception.cpp #1.1:1.2
@@ -40,13 +40,9 @@ bool Exception::operator==(const Excepti
}
-void Exception::copy(const Exception &e) {
- m_type = e.m_type;
- m_reason = e.m_reason;
-}
-
Exception &Exception::operator=(const Exception &e) {
if (this == &e)
return *this;
- copy(e);
+ m_type = e.m_type;
+ m_reason = e.m_reason;
return *this;
}
--- kdenonbeta/kdeutil/kde/util/exception.h #1.1:1.2
@@ -46,10 +46,4 @@ protected:
Exception(const QString &type, const QString &reason);
- /**
- * Makes a deep copy of the other Exception.
- * @param exception the other exception to copy
- */
- virtual void copy(const Exception &exception);
-
public:
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic