X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmac_utils.cpp;h=13021fcd672bc8ca4bc79f5ba105716c3e42ea01;hp=a9b25d25b7d415de21bc743e5a39d64379287bf7;hb=95848fd9232d92f388e0e533adb15f6ba9d2d492;hpb=e50ae7a06fc4e5d3a911c361d30953410deab609 diff --git a/src/common/mac_utils.cpp b/src/common/mac_utils.cpp index a9b25d25..13021fcd 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-2018 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); }