mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
14 lines
337 B
C
14 lines
337 B
C
|
// SPDX-License-Identifier: GPL-2.0
|
||
|
#ifndef NAMECMP_H
|
||
|
#define NAMECMP_H
|
||
|
|
||
|
#include <QXmlStreamReader>
|
||
|
|
||
|
// this is annoying Qt5 / Qt6 incompatibility where we can't compare against string literals anymore
|
||
|
static inline int nameCmp(QXmlStreamReader &r, const char * cs)
|
||
|
{
|
||
|
return r.name().compare(QLatin1String(cs));
|
||
|
}
|
||
|
|
||
|
#endif // NAMECMP_H
|