Cotire : Move macro definition to avoid duplicate symbols

This commit is contained in:
Magne Sjaastad 2018-12-10 09:31:10 +01:00
parent 15576a9ae3
commit 020146bead

View File

@ -60,7 +60,6 @@
namespace caf
{
CAF_PDM_UI_FIELD_EDITOR_SOURCE_INIT(PdmUiLineEditor);
//--------------------------------------------------------------------------------------------------
///
@ -260,4 +259,8 @@ void PdmUiLineEdit::keyPressEvent(QKeyEvent * event)
}
}
// Define at this location to avoid duplicate symbol definitions in 'cafPdmUiDefaultObjectEditor.cpp' in a cotire build. The
// variables defined by the macro are prefixed by line numbers causing a crash if the macro is defined at the same line number.
CAF_PDM_UI_FIELD_EDITOR_SOURCE_INIT(PdmUiLineEditor);
} // end namespace caf