[umbrello] [Bug 369464] Data type with modifiers are space sensitive

Oliver Kellogg bugzilla_noreply at kde.org
Sat Mar 5 07:10:50 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=369464

Oliver Kellogg <okellogg at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.33.80 (KDE releases
                   |                            |22.03.80)
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/sdk/
                   |                            |umbrello/commit/999d6338f4c
                   |                            |4baec178626fb3bff175e2bac79
                   |                            |06
             Status|ASSIGNED                    |RESOLVED

--- Comment #1 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list