mirror-chatterino2/src/util/CombinePath.hpp

15 lines
278 B
C++
Raw Normal View History

2018-06-21 13:02:34 +02:00
#pragma once
#include <QDir>
#include <QString>
namespace chatterino {
// https://stackoverflow.com/a/13014491
2018-06-26 17:51:31 +02:00
inline QString combinePath(const QString &a, const QString &b)
2018-06-21 13:02:34 +02:00
{
return QDir::cleanPath(a + QDir::separator() + b);
}
} // namespace chatterino