mirror-chatterino2/src/common.hpp
Rasmus Karlsson 9ccfff69d9 Add helper file common.hpp
The file currently contains function `qS(...)` which is an alias for
`QString::fromStdString(...)`
2017-07-23 14:09:20 +02:00

15 lines
197 B
C++

#pragma once
#include <QString>
#include <string>
namespace chatterino {
inline QString qS(const std::string &string)
{
return QString::fromStdString(string);
}
} // namespace chatterino