Move inline keyword to function definition.

This commit is contained in:
Felix Geyer 2012-08-01 10:40:38 +02:00
parent 9c378216f6
commit 8fb2f9db7c
4 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ Entry::~Entry()
qDeleteAll(m_history); qDeleteAll(m_history);
} }
template <class T> bool Entry::set(T& property, const T& value) template <class T> inline bool Entry::set(T& property, const T& value)
{ {
if (property != value) { if (property != value) {
property = value; property = value;

View File

@ -142,7 +142,7 @@ private Q_SLOTS:
private: private:
const Database* database() const; const Database* database() const;
template <class T> inline bool set(T& property, const T& value); template <class T> bool set(T& property, const T& value);
Uuid m_uuid; Uuid m_uuid;
EntryData m_data; EntryData m_data;

View File

@ -71,7 +71,7 @@ Group* Group::createRecycleBin()
return recycleBin; return recycleBin;
} }
template <class P, class V> bool Group::set(P& property, const V& value) { template <class P, class V> inline bool Group::set(P& property, const V& value) {
if (property != value) { if (property != value) {
property = value; property = value;
updateTimeinfo(); updateTimeinfo();

View File

@ -113,7 +113,7 @@ Q_SIGNALS:
void modified(); void modified();
private: private:
template <class P, class V> inline bool set(P& property, const V& value); template <class P, class V> bool set(P& property, const V& value);
void addEntry(Entry* entry); void addEntry(Entry* entry);
void removeEntry(Entry* entry); void removeEntry(Entry* entry);