mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 11:39:16 +02:00
Code cleanup
This commit is contained in:
21
src/common/kv.h
Normal file
21
src/common/kv.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef KV_H
|
||||
#define KV_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
class KV {
|
||||
public:
|
||||
KV(const QString &key, const QString &value) : _key(key), _value(value) {}
|
||||
|
||||
const QString &key() const {return _key;}
|
||||
const QString &value() const {return _value;}
|
||||
|
||||
bool operator==(const KV &other) const
|
||||
{return this->key() == other.key();}
|
||||
|
||||
private:
|
||||
QString _key;
|
||||
QString _value;
|
||||
};
|
||||
|
||||
#endif // KV_H
|
Reference in New Issue
Block a user