Summary: | Data type with modifiers are space sensitive | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | okellogg, simonandric5 |
Priority: | NOR | ||
Version: | 2.20.1 (KDE Applications 16.08.1) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | All | ||
Latest Commit: | https://invent.kde.org/sdk/umbrello/commit/999d6338f4c4baec178626fb3bff175e2bac7906 | Version Fixed In: | 2.33.80 (KDE releases 22.03.80) |
Sentry Crash Report: |
Description
Ralf Habacker
2016-09-28 10:10:09 UTC
Git commit 999d6338f4c4baec178626fb3bff175e2bac7906 by Oliver Kellogg. Committed on 05/03/2022 at 07:09. Pushed by okellogg into branch 'master'. Fix "Data type with modifiers are space sensitive" umbrello/model_utils.{h,cpp} - New function normalize(QString type) removes interspersed spaces from given type name where possible: Between word and non word, between non word and word, between non word and non word. Space between word and word is left intact to preserve names such as "unsigned long long". - In function findUMLObject: - On assigning to name apply normalize() to inName. - As a peripheral change, fix bug number in #ifdef TRY_BUGFIX_120862. umbrello/codeimport/kdevcppparser/cpptree2uml.cpp - In function typeOfDeclaration for-loop over ptrOpList, on assigning to `text' remove spaces from ptrOpList.at(i)->text() as done in loop over declarator->arrayDimensionList(). umbrello/dialogs/dialog_utils.cpp - In function askName apply Model_Utils::normalize() on returned name. umbrello/dialogs/widgets/umldatatypewidget.cpp - In functions applyAttribute, applyEntityAttribute, applyOperation, applyParameter, on assigning to typeName apply Model_Utils::normalize on m_editField->currentText(). umbrello/umldoc.cpp - In function findDatatype apply Model_Utils::normalize() to name before processing. FIXED-IN:2.33.80 (KDE releases 22.03.80) M +4 -2 umbrello/codeimport/kdevcppparser/cpptree2uml.cpp M +4 -3 umbrello/dialogs/dialog_utils.cpp M +6 -5 umbrello/dialogs/widgets/umldatatypewidget.cpp M +32 -2 umbrello/model_utils.cpp M +2 -0 umbrello/model_utils.h M +1 -0 umbrello/umldoc.cpp https://invent.kde.org/sdk/umbrello/commit/999d6338f4c4baec178626fb3bff175e2bac7906 |