ObjQt  helpers.h at [9463212568]

File common/helpers.h artifact 7d6cebc297 part of check-in 9463212568


#import <ObjFW/ObjFW.h>

#include <QString>

inline OFString*
QToOFString(const QString &qString)
{
	return [OFString stringWithUTF8String: qString.toUtf8()];
}

inline QString
OFToQString(OFString *string)
{
	return QString::fromUtf8([string UTF8String]);
}