Skip to content
Commit 1e538415 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Convert enumeration MyMoneyReport::EColumnType into a class to be more type safe

Type safety is increased by moving the enum into a separate name space (here
a class is used because namespaces are not allowed inside classes).

Q_ENUM(s) or QFlags could also not be used because the related enums need
to be defined somewhere outside, which does not solve the issue having all
constants in MyMoneyReport namespace.

CCBUG:391091

Test Plan: compiled on linux

Reviewers: #kmymoney

Reviewed By: #kmymoney, tbaumgart

Differential Revision: https://phabricator.kde.org/D11043



Signed-off-by: default avatarRalf Habacker <ralf.habacker@freenet.de>
parent 5fadc202
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment