X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmac_utils.cpp;h=c6dbf16abc8d6e68cb5fc41dc7fe7e40ac476712;hb=71253052c7152711f7f1b96f274d6f06d97f2cdb;hp=a9b25d25b7d415de21bc743e5a39d64379287bf7;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/common/mac_utils.cpp b/src/common/mac_utils.cpp index a9b25d25..c6dbf16a 100644 --- a/src/common/mac_utils.cpp +++ b/src/common/mac_utils.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,11 +28,11 @@ QString CFStringToQString(CFStringRef str) return QString(); CFIndex length = CFStringGetLength(str); - const UniChar *chars = CFStringGetCharactersPtr(str); + const UniChar* chars = CFStringGetCharactersPtr(str); if (chars) - return QString(reinterpret_cast(chars), length); + return QString(reinterpret_cast(chars), length); QVarLengthArray buffer(length); CFStringGetCharacters(str, CFRangeMake(0, length), buffer.data()); - return QString(reinterpret_cast(buffer.constData()), length); + return QString(reinterpret_cast(buffer.constData()), length); }