Skip to content

Commit

Permalink
Remove unnecessary includes following include-what-to-use recommendat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
gpospelov committed Jan 27, 2021
1 parent 739a154 commit 24760e0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "mvvm/serialization/compatibilityutils.h"
#include "mvvm/model/groupitem.h"
#include "mvvm/model/sessionitemcontainer.h"
#include "mvvm/model/sessionitemdata.h"
#include <set>

namespace ModelView ::Compatibility {

Expand Down
2 changes: 0 additions & 2 deletions source/libmvvm_model/mvvm/serialization/compatibilityutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
//! @brief Place for utils to fix back compatibility of serialized projects.

#include "mvvm/model_export.h"
#include <memory>

namespace ModelView {

class SessionItemData;
class SessionItemContainer;
class TagInfo;

Expand Down
2 changes: 1 addition & 1 deletion source/libmvvm_model/mvvm/serialization/jsondocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using namespace ModelView;

struct JsonDocument::JsonDocumentImpl {
std::vector<SessionModel*> models;
JsonDocumentImpl(const std::vector<SessionModel*>& models) : models(models) {}
JsonDocumentImpl(std::vector<SessionModel*> models) : models(std::move(models)) {}
};

JsonDocument::JsonDocument(const std::vector<SessionModel*>& models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "mvvm/serialization/jsonitemcontainerconverter.h"
#include "mvvm/model/sessionitem.h"
#include "mvvm/model/sessionitemcontainer.h"
#include "mvvm/model/sessionitemtags.h"
#include "mvvm/model/tagrow.h"
#include "mvvm/serialization/compatibilityutils.h"
#include "mvvm/serialization/jsonitem_types.h"
#include "mvvm/serialization/jsonitemformatassistant.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace ModelView {

class ItemFactoryInterface;
struct ConverterContext;

//! Converter between SessionItem and JSON object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#define MVVM_SERIALIZATION_JSONITEMDATACONVERTER_H

#include "mvvm/serialization/jsonitemdataconverterinterface.h"
#include <QString>
#include <functional>
#include <memory>

Expand Down

0 comments on commit 24760e0

Please sign in to comment.