Add helper file common.hpp

The file currently contains function `qS(...)` which is an alias for
`QString::fromStdString(...)`
This commit is contained in:
Rasmus Karlsson 2017-07-23 14:09:20 +02:00
parent 0563136a34
commit 9ccfff69d9

14
src/common.hpp Normal file
View file

@ -0,0 +1,14 @@
#pragma once
#include <QString>
#include <string>
namespace chatterino {
inline QString qS(const std::string &string)
{
return QString::fromStdString(string);
}
} // namespace chatterino