mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add helper file common.hpp
The file currently contains function `qS(...)` which is an alias for `QString::fromStdString(...)`
This commit is contained in:
parent
0563136a34
commit
9ccfff69d9
1 changed files with 14 additions and 0 deletions
14
src/common.hpp
Normal file
14
src/common.hpp
Normal 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
|
Loading…
Reference in a new issue