Move inline keyword to function definition.

This commit is contained in:
Felix Geyer committed 2012-08-04 22:06:41 +02:00
1 parent 9c378216f6
commit 8fb2f9db7c
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ Entry::~Entry()
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) {
property = value;
+1 -1
View File
@@ -142,7 +142,7 @@ private Q_SLOTS:
private:
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;
EntryData m_data;
+1 -1
View File
@@ -71,7 +71,7 @@ Group* Group::createRecycleBin()
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) {
property = value;
updateTimeinfo();
+1 -1
View File
@@ -113,7 +113,7 @@ Q_SIGNALS:
void modified();
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 removeEntry(Entry* entry);