projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use braced-init list when returning types
[quassel.git]
/
src
/
uisupport
/
clickable.cpp
diff --git
a/src/uisupport/clickable.cpp
b/src/uisupport/clickable.cpp
index
5364a70
..
1f5720e
100644
(file)
--- a/
src/uisupport/clickable.cpp
+++ b/
src/uisupport/clickable.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
5
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-110,7
+110,7
@@
ClickableList ClickableList::fromString(const QString &str)
if (QRegExp("^#\\d+$").exactMatch(match))
continue;
}
if (QRegExp("^#\\d+$").exactMatch(match))
continue;
}
- result.
append(Clickable((Clickable::Type)type, matches[type], matchEnd[type] - matches[type])
);
+ result.
emplace_back((Clickable::Type)type, matches[type], matchEnd[type] - matches[type]
);
}
}
while (type >= 0);
}
}
while (type >= 0);