Skip to content

Commit

Permalink
Fix one Qt6 issue
Browse files Browse the repository at this point in the history
And comment another.
  • Loading branch information
pcolby committed Jul 2, 2021
1 parent e8dce05 commit c528e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/awsabstractresponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ QMultiMap<QString, QVariant> AwsAbstractResponse::toVariant(
break;
case QXmlStreamReader::StartElement: {
const QString elementName = xml.name().toString();
/// @todo This will need refactoring for Qt6.
multiMap.insert(elementName, toVariant(xml, prefix, maxDepth-1));
break;
}
Expand Down
4 changes: 1 addition & 3 deletions src/core/awsendpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ QHash<QString, AwsEndpointPrivate::HostInfo> AwsEndpointPrivate::hosts; //
QHash<QString, AwsEndpointPrivate::RegionInfo> AwsEndpointPrivate::regions; ///< Hash of region names to RegionInfo.
QHash<QString, AwsEndpointPrivate::ServiceInfo> AwsEndpointPrivate::services; ///< Hash of service names to ServiceInfo.

QMutex AwsEndpointPrivate::mutex(QMutex::Recursive); ///< Mutex for protecting access to static members.
QMutex AwsEndpointPrivate::mutex; ///< Mutex for protecting access to static members.

/*!
* Constructs an AwsEndpointPrivate object with public implementation \a q.
Expand Down Expand Up @@ -396,7 +396,6 @@ AwsEndpointPrivate::AwsEndpointPrivate(AwsEndpoint * const q)
*/
void AwsEndpointPrivate::loadEndpointData(const QString &fileName)
{
QMutexLocker locker(&mutex);
if (!hosts.empty()) {
return; // Already loaded.
}
Expand All @@ -418,7 +417,6 @@ void AwsEndpointPrivate::loadEndpointData(const QString &fileName)
*/
void AwsEndpointPrivate::loadEndpointData(QIODevice &device)
{
QMutexLocker locker(&mutex);
if (!hosts.empty()) {
return; // Already loaded.
}
Expand Down

0 comments on commit c528e4e

Please sign in to comment.