diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index 6b765ec3632c7..92ae2bc7161a9 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -460,9 +460,9 @@ OCC::Result OCC::CfApiWrapper::registerSyncRoot(const QString &pa qCWarning(lcCfApiWrapper) << "Failed to create the registry key for path:" << path; } - const auto p = std::wstring(path.toStdWString().c_str()); - const auto name = std::wstring(providerName.toStdWString().c_str()); - const auto version = std::wstring(providerVersion.toStdWString().c_str()); + const auto p = std::wstring(path.toStdWString().data()); + const auto name = std::wstring(providerName.toStdWString().data()); + const auto version = std::wstring(providerVersion.toStdWString().data()); CF_SYNC_REGISTRATION info; info.ProviderName = name.data();