subsurface/core/namecmp.h
Berthold Stoeger 03b910ee7f core: remove __cplusplus ifdefs
Since all source files are now C++, this is redundant.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-08-13 19:28:30 +02:00

13 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