umbrello/umlwidgets/associationline.{h,cpp} (symbolTable) : Change to pointer.
umbrello/umlwidgets/associationline.cpp - New type SymbolPropertyPOD factors the integers from SymbolProperty into a Plain Old Data C-language struct. - Static constant symPropData defines the SymbolProperty values as an array of SymbolPropertyPOD. - In function setupSymbolTable, - allocate SymbolProperty[Count] to symbolTable; - copy C represented symPropData to C++ symbolTable. - These changes help avoid "C++ static initialization order fiasco", see https://en.cppreference.com/w/cpp/language/siof
parent
72d8fdff
Please register or sign in to comment