aboutsummaryrefslogtreecommitdiffstats
path: root/src/diagram/statement.cpp
blob: eae5cd3738a20e075f439c7655d65ab647a90242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "diagram/statement.h"

using namespace samb;

/* Statement */

Statement::Statement(Type t, const QString &text) :
    type(t), _text(text), _next(nullptr)
{

}

Statement::Statement(Type t, const QString &text, Statement::pointer p) :
    type(t), _text(text), _next(p)
{

}

Statement::~Statement()
{

}

bool Statement::operator==(const Statement& other) const {
    // comparison by pointers
    return (this == &other);
}