made Link a struct
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace chatterino {
|
||||
namespace messages {
|
||||
|
||||
Link::Link()
|
||||
: type(None)
|
||||
, value(QString())
|
||||
@@ -19,16 +18,5 @@ bool Link::isValid() const
|
||||
{
|
||||
return this->type != None;
|
||||
}
|
||||
|
||||
Link::Type Link::getType() const
|
||||
{
|
||||
return this->type;
|
||||
}
|
||||
|
||||
const QString &Link::getValue() const
|
||||
{
|
||||
return this->value;
|
||||
}
|
||||
|
||||
} // namespace messages
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
|
||||
namespace chatterino {
|
||||
namespace messages {
|
||||
|
||||
class Link
|
||||
{
|
||||
struct Link {
|
||||
public:
|
||||
enum Type {
|
||||
None,
|
||||
@@ -23,14 +21,10 @@ public:
|
||||
Link();
|
||||
Link(Type getType, const QString &getValue);
|
||||
|
||||
bool isValid() const;
|
||||
Type getType() const;
|
||||
const QString &getValue() const;
|
||||
|
||||
private:
|
||||
Type type;
|
||||
QString value;
|
||||
};
|
||||
|
||||
bool isValid() const;
|
||||
};
|
||||
} // namespace messages
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user