X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmac_utils.cpp;h=1f8c2686b3b6e7225ee718b900d541e98727e7b5;hp=204a633066f508e988b1d01be634b4ffb4f71887;hb=a8ab790b2218d6131f12b622b1373ba62958f3ef;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c diff --git a/src/common/mac_utils.cpp b/src/common/mac_utils.cpp index 204a6330..1f8c2686 100644 --- a/src/common/mac_utils.cpp +++ b/src/common/mac_utils.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2019 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); }