31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
@end
namespace ObjQt {
static OF_INLINE OFString *
toOF(const QString &qString)
{
return [OFString stringWithQString: qString];
}
static OF_INLINE QString
toQt(OFString *string)
{
return [string qString];
}
}
|
>
>
>
>
>
>
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
@end
namespace ObjQt {
static OF_INLINE OFString *
toOF(const QString &qString)
{
if (qString.isNull())
return nil;
return [OFString stringWithQString: qString];
}
static OF_INLINE QString
toQt(OFString *string)
{
if (string == nil)
return QString();
return [string qString];
}
}
|