review and cleanup of "#include <QtCore/QSharedPointer>"

This commit is contained in:
Heather Anderson 2021-09-10 21:40:54 -07:00
parent 88b0045258
commit ab4d70760e
94 changed files with 102 additions and 17 deletions

View file

@ -17,6 +17,7 @@
#include <QtScript/QScriptEngine>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUrl>
#include <QtCore/QTimer>
#include <QUuid>

View file

@ -15,6 +15,7 @@
#include <QtCore/QCoreApplication>
#include <QtCore/QPointer>
#include <QtCore/QSharedPointer>
#include "ThreadedAssignment.h"

View file

@ -17,6 +17,7 @@
#include <QtCore/qpointer.h>
#include <QtCore/QProcess>
#include <QtCore/QDateTime>
#include <QtCore/QSharedPointer>
#include <QDir>
#include <Assignment.h>

View file

@ -13,6 +13,7 @@
#define hifi_AssetServer_h
#include <QtCore/QDir>
#include <QtCore/QSharedPointer>
#include <QtCore/QThreadPool>
#include <QRunnable>

View file

@ -12,6 +12,8 @@
#ifndef hifi_AudioMixer_h
#define hifi_AudioMixer_h
#include <QtCore/QSharedPointer>
#include <AABox.h>
#include <AudioHRTF.h>
#include <AudioRingBuffer.h>

View file

@ -20,6 +20,7 @@
#endif
#include <QtCore/QJsonObject>
#include <QtCore/QSharedPointer>
#include <AABox.h>
#include <AudioHRTF.h>

View file

@ -16,6 +16,8 @@
#ifndef hifi_AvatarMixer_h
#define hifi_AvatarMixer_h
#include <QtCore/QSharedPointer>
#include <set>
#include <shared/RateCounter.h>
#include <PortableHighResolutionClock.h>

View file

@ -19,6 +19,7 @@
#include <queue>
#include <QtCore/QJsonObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUrl>
#include "MixerAvatar.h"

View file

@ -14,6 +14,8 @@
#include "../octree/OctreeServer.h"
#include <QtCore/QSharedPointer>
#include <memory>
#include <EntityItem.h>

View file

@ -15,6 +15,8 @@
#ifndef hifi_MessagesMixer_h
#define hifi_MessagesMixer_h
#include <QtCore/QSharedPointer>
#include <ThreadedAssignment.h>
/// Handles assignments of type MessagesMixer - distribution of avatar data to various clients

View file

@ -12,6 +12,8 @@
#ifndef hifi_OctreeHeadlessViewer_h
#define hifi_OctreeHeadlessViewer_h
#include <QtCore/QSharedPointer>
#include <OctreeProcessor.h>
#include <OctreeQuery.h>

View file

@ -14,6 +14,8 @@
#ifndef hifi_OctreeInboundPacketProcessor_h
#define hifi_OctreeInboundPacketProcessor_h
#include <QtCore/QSharedPointer>
#include <ReceivedPacketProcessor.h>
#include "SequenceNumberStats.h"

View file

@ -17,6 +17,7 @@
#include <QStringList>
#include <QDateTime>
#include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <HTTPManager.h>

View file

@ -16,6 +16,7 @@
#include <vector>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUuid>
#include <EntityEditPacketSender.h>

View file

@ -20,6 +20,7 @@
#include <QtCore/QObject>
#include <QtNetwork/QNetworkReply>
#include <QtCore/QSharedPointer>
#include <DomainHandler.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QJsonDocument>
#include <QtNetwork/QNetworkReply>
#include <QtCore/QSharedPointer>
#include <HifiConfigVariantMap.h>
#include <HTTPManager.h>

View file

@ -19,6 +19,7 @@
#include <QtCore/QTimer>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>
#include <QtCore/QSharedPointer>
#include <LimitedNodeList.h>
#include <NetworkAccessManager.h>

View file

@ -14,7 +14,6 @@
#define hifi_IceServer_h
#include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <QUdpSocket>
#include <openssl/rsa.h>

View file

@ -18,6 +18,7 @@
#include <QtCore/QHash>
#include <QtCore/QPointer>
#include <QtCore/QSet>
#include <QtCore/QSharedPointer>
#include <QtCore/QStringList>
#include <QtQuick/QQuickItem>

View file

@ -11,6 +11,8 @@
#include "InterfaceParentFinder.h"
#include <QtCore/QSharedPointer>
#include <Application.h>
#include <AvatarData.h>
#include <avatar/AvatarManager.h>

View file

@ -11,7 +11,6 @@
#ifndef hifi_LoginStateManager_h
#define hifi_LoginStateManager_h
#include <QtCore/QList>
#include <QtCore/QSharedPointer>
#include <QtCore/QVariant>
#include <PointerEvent.h>

View file

@ -16,7 +16,6 @@
#include <QtCore/QHash>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <AvatarHashMap.h>
#include <PhysicsEngine.h>

View file

@ -11,6 +11,7 @@
#include "GrabManager.h"
#include <QtCore/QSharedPointer>
void GrabManager::simulateGrabs() {
QSharedPointer<AvatarManager> avatarManager = DependencyManager::get<AvatarManager>();

View file

@ -14,6 +14,8 @@
#ifndef hifi_Wallet_h
#define hifi_Wallet_h
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <Node.h>
#include <ReceivedMessage.h>

View file

@ -12,6 +12,8 @@
#ifndef hifi_OctreePacketProcessor_h
#define hifi_OctreePacketProcessor_h
#include <QtCore/QSharedPointer>
#include <ReceivedPacketProcessor.h>
#include <ReceivedMessage.h>

View file

@ -8,6 +8,8 @@
#ifndef hifi_CollisionPick_h
#define hifi_CollisionPick_h
#include <QtCore/QSharedPointer>
#include <PhysicsEngine.h>
#include <model-networking/ModelCache.h>
#include <RegisteredMetaTypes.h>

View file

@ -16,6 +16,7 @@
#include <QProcess>
#include <QtCore/QCoreApplication>
#include <QNetworkReply>
#include <QtCore/QSharedPointer>
#include <PathUtils.h>
#include <ReceivedMessage.h>

View file

@ -14,6 +14,7 @@
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <AbstractViewStateInterface.h>

View file

@ -10,6 +10,7 @@
//
#include "WalletScriptingInterface.h"
#include <QtCore/QSharedPointer>
#include <SettingHandle.h>
CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(qmlObject, parent) {

View file

@ -14,7 +14,6 @@
#include <QFutureWatcher>
#include <QObject>
#include <QSharedPointer>
#include <QCompleter>
#include <QtCore/QJsonArray>

View file

@ -12,6 +12,7 @@
#ifndef hifi_SnapshotAnimated_h
#define hifi_SnapshotAnimated_h
#include <QtCore/QSharedPointer>
#include <QtCore/QVector>
#include <Application.h>
#include <DependencyManager.h>

View file

@ -15,6 +15,7 @@
#include <QtCore/QObject>
#include <QUuid>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <PointerEvent.h>

View file

@ -14,6 +14,7 @@
#include <memory>
#include <QNetworkReply>
#include <QtCore/QSharedPointer>
#include <QString>
#include <QUrl>

View file

@ -13,6 +13,7 @@
#define hifi_AnimationCache_h
#include <QtCore/QRunnable>
#include <QtCore/QSharedPointer>
#include <QtScript/QScriptEngine>
#include <QtScript/QScriptValue>

View file

@ -24,6 +24,7 @@
#include <QtCore/QByteArray>
#include <QtCore/QElapsedTimer>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QVector>
#include <QtMultimedia/QAudio>
#include <QtMultimedia/QAudioFormat>

View file

@ -15,6 +15,7 @@
#include "MovingMinMaxAvg.h"
#include <QObject>
#include <QtCore/QSharedPointer>
#include <AudioStreamStats.h>
#include <Node.h>

View file

@ -8,8 +8,6 @@
#include "AbstractAudioInterface.h"
#include <QtCore/QSharedPointer>
#include <Node.h>
#include <NodeType.h>
#include <DependencyManager.h>

View file

@ -12,6 +12,7 @@
#include "AudioInjectorManager.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <SharedUtil.h>
#include <shared/QtHelpers.h>

View file

@ -14,6 +14,7 @@
#include <QRunnable>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtNetwork/QNetworkReply>
#include <QtScript/qscriptengine.h>

View file

@ -12,6 +12,8 @@
#ifndef hifi_SoundCache_h
#define hifi_SoundCache_h
#include <QtCore/QSharedPointer>
#include <ResourceCache.h>
#include "Sound.h"

View file

@ -12,6 +12,8 @@
#ifndef hifi_ClientTraitsHandler_h
#define hifi_ClientTraitsHandler_h
#include <QtCore/QSharedPointer>
#include <ReceivedMessage.h>
#include "AssociatedTraitValues.h"

View file

@ -12,6 +12,8 @@
#ifndef hifi_MaterialBaker_h
#define hifi_MaterialBaker_h
#include <QtCore/QSharedPointer>
#include "Baker.h"
#include "TextureBaker.h"

View file

@ -17,6 +17,7 @@
#include <QtCore/QUrl>
#include <QtNetwork/QNetworkReply>
#include <QJsonArray>
#include <QtCore/QSharedPointer>
#include "Baker.h"
#include "MaterialBaker.h"

View file

@ -14,6 +14,7 @@
#include <QtCore/QCoreApplication>
#include <QtCore/QBuffer>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread>
#include <QtCore/QTimer>
#include <QtCore/QFileInfo>

View file

@ -15,6 +15,7 @@
#include <QtCore/QSet>
#include <QtCore/QStack>
#include <QtGui/QMouseEvent>
#include <QtCore/QSharedPointer>
#include <AudioInjectorManager.h>
#include <EntityScriptingInterface.h> // for RayToEntityIntersectionResult

View file

@ -10,6 +10,7 @@
#ifndef hifi_RenderableWebEntityItem_h
#define hifi_RenderableWebEntityItem_h
#include <QtCore/QSharedPointer>
#include <WebEntityItem.h>
#include "RenderableEntityItem.h"

View file

@ -12,6 +12,8 @@
#ifndef hifi_EntityEditPacketSender_h
#define hifi_EntityEditPacketSender_h
#include <QtCore/QSharedPointer>
#include <OctreeEditPacketSender.h>
#include <mutex>

View file

@ -13,6 +13,7 @@
#define hifi_EntityScriptServerLogClient_h
#include <QObject>
#include <QtCore/QSharedPointer>
#include <NodeList.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <QtCore/QSharedPointer>
#include <QtQml/QJSValue>
#include <QtQml/QJSValueList>

View file

@ -9,6 +9,7 @@
#ifndef hifi_ShaderCache_h
#define hifi_ShaderCache_h
#include <QtCore/QSharedPointer>
#include <ResourceCache.h>
class NetworkShader : public Resource {

View file

@ -18,6 +18,7 @@
#include <QMap>
#include <QColor>
#include <QMetaEnum>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <ResourceCache.h>

View file

@ -12,6 +12,8 @@
#ifndef hifi_ModelCache_h
#define hifi_ModelCache_h
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <ResourceCache.h>

View file

@ -15,6 +15,7 @@
#include <QStandardItemModel>
#include <QtQml/QJSEngine>
#include <QString>
#include <QtCore/QSharedPointer>
#include <map>

View file

@ -15,6 +15,7 @@
#define hifi_BaseAssetScriptingInterface_h
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread>
#include "AssetClient.h"
#include <shared/MiniPromises.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer>
#include <QtCore/QUuid>
#include <QtCore/QUrl>

View file

@ -12,6 +12,8 @@
#ifndef hifi_EntityScriptClient_h
#define hifi_EntityScriptClient_h
#include <QtCore/QSharedPointer>
#include "ClientServerUtils.h"
#include "LimitedNodeList.h"
#include "ReceivedMessage.h"

View file

@ -29,6 +29,7 @@
#include <QtCore/QReadWriteLock>
#include <QtCore/QSet>
#include <QtCore/QSharedMemory>
#include <QtCore/QSharedPointer>
#include <QtNetwork/QUdpSocket>
#include <QtNetwork/QHostAddress>

View file

@ -11,6 +11,7 @@
#include "MappingRequest.h"
#include <QtCore/QSharedPointer>
#include <QtCore/QThread>
#include <DependencyManager.h>

View file

@ -15,6 +15,7 @@
#include <QString>
#include <QByteArray>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>

View file

@ -13,8 +13,6 @@
#ifndef hifi_NLPacket_h
#define hifi_NLPacket_h
#include <QtCore/QSharedPointer>
#include <UUID.h>
#include "udt/Packet.h"

View file

@ -12,6 +12,7 @@
#ifndef hifi_NLPacketList_h
#define hifi_NLPacketList_h
#include <QtCore/QSharedPointer>
#include "udt/PacketList.h"
#include "NLPacket.h"

View file

@ -16,6 +16,7 @@
#include <atomic>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer>
#include <QtCore/QUuid>

View file

@ -14,7 +14,6 @@
#include <QtCore/QMutex>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include "NetworkPeer.h"
#include "NLPacket.h"

View file

@ -15,8 +15,6 @@
#include <algorithm>
#include <chrono>
#include "QSharedPointer"
int receivedMessageMetaTypeId = qRegisterMetaType<ReceivedMessage*>("ReceivedMessage*");
int sharedPtrReceivedMessageMetaTypeId = qRegisterMetaType<QSharedPointer<ReceivedMessage>>("QSharedPointer<ReceivedMessage>");

View file

@ -15,6 +15,7 @@
#include <QByteArray>
#include <QObject>
#include <QtCore/QSharedPointer>
#include <atomic>

View file

@ -12,6 +12,7 @@
#ifndef hifi_ReceivedPacketProcessor_h
#define hifi_ReceivedPacketProcessor_h
#include <QtCore/QSharedPointer>
#include <QWaitCondition>
#include "NodeList.h"

View file

@ -15,6 +15,7 @@
#define hifi_OctreePersistThread_h
#include <QString>
#include <QtCore/QSharedPointer>
#include <GenericThread.h>
#include "Octree.h"

View file

@ -11,6 +11,8 @@
#include "ObjectDynamic.h"
#include <QtCore/QSharedPointer>
#include "EntitySimulation.h"
#include "PhysicsLogging.h"

View file

@ -18,6 +18,7 @@
#include <QtCore/QElapsedTimer>
#include <QtCore/QJsonObject>
#include <QtCore/QMutex>
#include <QtCore/QSharedPointer>
#include <QtCore/QWaitCondition>
#include <GLMHelpers.h>

View file

@ -8,6 +8,7 @@
#pragma once
#include <QObject>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h>
#include <SettingHandle.h>

View file

@ -8,6 +8,8 @@
#ifndef hifi_MaterialCache_h
#define hifi_MaterialCache_h
#include <QtCore/QSharedPointer>
#include "glm/glm.hpp"
#include <ResourceCache.h>

View file

@ -17,7 +17,6 @@
#include <QtCore/QUrl>
#include <QtCore/QSize>
#include <QtCore/QPointF>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer>
#include <QtQml/QJSValue>

View file

@ -8,7 +8,6 @@
#pragma once
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread>
#include <QtCore/QWaitCondition>
#include <QtCore/QMutex>

View file

@ -9,6 +9,8 @@
#ifndef hifi_Recording_ClipCache_h
#define hifi_Recording_ClipCache_h
#include <QtCore/QSharedPointer>
#include <ResourceCache.h>
#include "Forward.h"

View file

@ -15,7 +15,7 @@
#include <QOffscreenSurface>
#include <QQueue>
#include <QMap>
#include <QSharedPointer>
#include <QtCore/QSharedPointer>
#include <QMutex>
class QOpenGLFramebufferObject;

View file

@ -16,6 +16,7 @@
#include <mutex>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <BaseScriptEngine.h>
#include <DependencyManager.h>

View file

@ -22,6 +22,7 @@
#include <QtCore/QObject>
#include <QtCore/QUrl>
#include <QtCore/QSet>
#include <QtCore/QSharedPointer>
#include <QtCore/QWaitCondition>
#include <QtCore/QStringList>
#include <QMap>

View file

@ -9,6 +9,7 @@
#include "ScriptEngines.h"
#include <QtCore/QStandardPaths>
#include <QtCore/QSharedPointer>
#include <QtWidgets/QApplication>

View file

@ -19,6 +19,7 @@
#include <QtCore/QObject>
#include <QtCore/QMutex>
#include <QtCore/QReadWriteLock>
#include <QtCore/QUrl>
#include <SettingHandle.h>
#include <DependencyManager.h>

View file

@ -14,6 +14,7 @@
#include <functional>
#include <QtCore/QDebug>
#include <QtCore/QSharedPointer>
#include <QtScript/QScriptEngine>
class ScriptEngine;

View file

@ -15,7 +15,7 @@
#include <QtGlobal>
#include <QDebug>
#include <QHash>
#include <QSharedPointer>
#include <QtCore/QSharedPointer>
#include <QWeakPointer>
#include <QMutex>

View file

@ -18,6 +18,7 @@
#include <QtCore/QString>
#include <QtCore/QVariant>
#include <QtCore/QReadWriteLock>
#include <QtCore/QSharedPointer>
#include <QtCore/QDebug>
#include <glm/glm.hpp>

View file

@ -11,6 +11,8 @@
#include "SpatiallyNestable.h"
#include <QtCore/QSharedPointer>
#include <queue>
#include "DependencyManager.h"

View file

@ -10,7 +10,6 @@
#include <functional>
#include <mutex>
#include <QSharedPointer>
#include "../DependencyManager.h"
class QScriptEngine;

View file

@ -9,6 +9,7 @@
#include "CursorManager.h"
#include <QCursor>
#include <QtCore/QSharedPointer>
#include <QWidget>
#include <QUrl>

View file

@ -8,6 +8,7 @@
#include <DependencyManager.h>
#include <QImage>
#include <QtCore/QSharedPointer>
class DesktopPreviewProvider : public QObject, public Dependency {
SINGLETON_DEPENDENCY

View file

@ -7,6 +7,7 @@
//
#include "VirtualPadManager.h"
#include <QtCore/QSharedPointer>
namespace VirtualPad {

View file

@ -24,6 +24,7 @@
#include <QtQuick/QQuickRenderControl>
#include <QtCore/QThread>
#include <QtCore/QMutex>
#include <QtCore/QSharedPointer>
#include <QtCore/QWaitCondition>
#include <QtMultimedia/QMediaService>
#include <QtMultimedia/QAudioOutputSelectorControl>

View file

@ -13,6 +13,7 @@
#include <atomic>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUuid>
#include <QtCore/QVariant>
#include <QtCore/QAbstractListModel>

View file

@ -15,7 +15,6 @@
#include <QtCore/QHash>
#include <QtCore/QReadWriteLock>
#include <QtCore/QSet>
#include <QtCore/QSharedPointer>
#if !defined(Q_OS_ANDROID)
#include <QtWebEngine/QQuickWebEngineProfile>

View file

@ -14,6 +14,7 @@
#include <QtCore/QByteArray>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QSharedPointer>
#include <QtCore/QJsonObject>
#include <QtCore/QLoggingCategory>
#include <QtCore/QThread>

View file

@ -7,6 +7,7 @@
//
#include <QtWidgets/QApplication>
#include <QtCore/QSharedPointer>
#include <shared/FileLogger.h>
#include "PlayerWindow.h"

View file

@ -15,6 +15,7 @@
#include <QDataStream>
#include <QLoggingCategory>
#include <QCommandLineParser>
#include <QtCore/QSharedPointer>
#include <PathUtils.h>
#include <LimitedNodeList.h>

View file

@ -15,6 +15,7 @@
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonArray>
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUrl>
#include <QtCore/QThread>