Refactor: simplify NoteContent
ClosedPublic

Authored by iasensio on May 12 2020, 5:33 PM.

Details

Summary

Small refactor to reduce the size of NoteContent class

Move cssColorsName() to Tools, and also use a simpler QHash
Move loadNode() to NoteFactory

Test Plan

It works just the same

Diff Detail

Repository
R1050 BasKet
Branch
notecontent
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 26803
Build 26821: arc lint + arc unit
iasensio requested review of this revision.May 12 2020, 5:33 PM
iasensio created this revision.
alex added inline comments.May 12 2020, 5:42 PM
src/notefactory.cpp
1047

While at it you should force braces to the if statements

iasensio updated this revision to Diff 82686.May 12 2020, 6:49 PM
iasensio marked an inline comment as done.
  • Add brackets
ognarb accepted this revision.May 12 2020, 7:07 PM
This revision is now accepted and ready to land.May 12 2020, 7:07 PM
alex accepted this revision.May 12 2020, 7:23 PM
This revision was automatically updated to reflect the committed changes.