Commit f70ad82b authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Erik Verbruggen

CppEditor: put Q_DECLARE_METATYPE right after the declaration

And before the first use outside the class. This will make sure the
template specialization is generated in the right place. If not, a
static assert is triggered when C++11 is enabled.

Change-Id: I8de7fa52a9986a1f99f3ad32696121ef565ee3b6
Reviewed-by: default avatarJędrzej Nowacki <>
Reviewed-by: default avatarNikolai Kosjar <>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 3d4c9fdd
......@@ -339,8 +339,15 @@ enum Virtuality
typedef QList<Virtuality> VirtualityList;
} // Internal namespace
} // CppEditor namespace
namespace CppEditor {
namespace Internal {
void CppEditorPlugin::test_functionhelper_virtualFunctions()
......@@ -431,7 +438,4 @@ void CppEditorPlugin::test_functionhelper_virtualFunctions_data()
} // namespace Internal
} // namespace CppEditor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment