summaryrefslogtreecommitdiffstats
path: root/src/sessiontreeitem.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2018-07-26 17:15:55 +0200
committerSimon Rettberg2018-07-26 17:15:55 +0200
commitba0cd9ba655c6543d2f9c2a46a3ecf0b6da98f1d (patch)
tree292e84f0719b123c129a569acbaae995a9027654 /src/sessiontreeitem.cpp
parentOnly apply LDAP filter logic if lecture has any filters... (diff)
downloadvmchooser2-ba0cd9ba655c6543d2f9c2a46a3ecf0b6da98f1d.tar.gz
vmchooser2-ba0cd9ba655c6543d2f9c2a46a3ecf0b6da98f1d.tar.xz
vmchooser2-ba0cd9ba655c6543d2f9c2a46a3ecf0b6da98f1d.zip
Cleanup code style (C++11, casts, etc)
Diffstat (limited to 'src/sessiontreeitem.cpp')
-rw-r--r--src/sessiontreeitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sessiontreeitem.cpp b/src/sessiontreeitem.cpp
index 5f3c28e..c95b5cf 100644
--- a/src/sessiontreeitem.cpp
+++ b/src/sessiontreeitem.cpp
@@ -11,7 +11,7 @@ QString SessionTreeItem::typeToName(const SectionType type) {
return QCoreApplication::instance()->translate("Dialog", "Working environments");
case SECTION_XSESSION:
return QCoreApplication::instance()->translate("Dialog", "X-Sessions");
- case SECTION_NULL:
+ case SECTION_nullptr:
return "<null>";
default:
break;
@@ -24,11 +24,11 @@ SessionTreeItem::SessionTreeItem(const Session* session, SessionTreeItem *parent
}
SessionTreeItem::SessionTreeItem(const SectionType type, SessionTreeItem *parent)
- : parent_(parent), session_(NULL), sectionType_(type), text_(typeToName(type)) {
+ : parent_(parent), session_(nullptr), sectionType_(type), text_(typeToName(type)) {
}
SessionTreeItem::SessionTreeItem(const QString& text, SessionTreeItem *parent)
- : parent_(parent), session_(NULL), sectionType_(SECTION_NULL), text_(text) {
+ : parent_(parent), session_(nullptr), sectionType_(SECTION_nullptr), text_(text) {
}
SessionTreeItem::~SessionTreeItem() {