Formatting

This commit is contained in:
Jonas Kvinge
2021-06-12 20:53:23 +02:00
parent 427b9c1ebc
commit f786a17014
117 changed files with 444 additions and 434 deletions

View File

@@ -27,10 +27,10 @@ THE SOFTWARE.
#include <QImage>
#include <QPixmap>
static inline NSString* fromQString(const QString &string) {
static inline NSString *fromQString(const QString &string) {
const QByteArray utf8 = string.toUtf8();
const char* cString = utf8.constData();
const char *cString = utf8.constData();
return [ [NSString alloc] initWithUTF8String:cString];
}
@@ -42,7 +42,7 @@ static inline QString toQString(NSString *string) {
}
static inline NSImage* fromQPixmap(const QPixmap &pixmap) {
static inline NSImage *fromQPixmap(const QPixmap &pixmap) {
QImage image = pixmap.toImage();
CGImageRef cgImage = image.toCGImage();