removing more boost references
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
#include <noggit/ui/tools/NodeEditor/Nodes/DataTypes/GenericData.hpp>
|
||||
#include <noggit/ui/tools/NodeEditor/Nodes/Scene/NodeScene.hpp>
|
||||
#include "noggit/ui/tools/NodeEditor/Nodes/Scene/Context.hpp"
|
||||
|
||||
#include <boost/format.hpp>
|
||||
#include <external/NodeEditor/include/nodes/Node>
|
||||
|
||||
using namespace Noggit::Ui::Tools::NodeEditor::Nodes;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define NOGGIT_GENERICTYPECONVERTER_HPP
|
||||
|
||||
#include <external/NodeEditor/include/nodes/NodeDataModel>
|
||||
#include <boost/format.hpp>
|
||||
#include <sstream>
|
||||
#include "GenericData.hpp"
|
||||
|
||||
using QtNodes::PortType;
|
||||
@@ -108,7 +108,12 @@ struct ColorDecimalConverter
|
||||
|
||||
struct ColorStringConverter
|
||||
{
|
||||
static std::string convert(glm::vec4 const& value) { return (boost::format("Color<%d, %d, %d, %d>") % value[0] % value[1] % value[2] % value[3]).str(); }
|
||||
static std::string convert(glm::vec4 const& value) {
|
||||
|
||||
auto sstream = std::stringstream();
|
||||
sstream << "Color<" << value[0] << "," << value[1] << "," << value[2] << "," << value[3] << ">";
|
||||
return sstream.str();
|
||||
}
|
||||
};
|
||||
|
||||
struct ColorVector4DConverter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <noggit/ui/tools/NodeEditor/Nodes/BaseNode.inl>
|
||||
#include <noggit/ui/tools/NodeEditor/Nodes/DataTypes/GenericData.hpp>
|
||||
#include "boost/format.hpp"
|
||||
#include <sstream>
|
||||
|
||||
#include <QInputDialog>
|
||||
|
||||
@@ -55,12 +55,10 @@ void LogicBeginNode::compute()
|
||||
{
|
||||
setValidationState(NodeValidationState::Error);
|
||||
|
||||
auto sstream = std::stringstream();
|
||||
sstream << "Error: Argument of type <" << _out_ports[i].data_type->type().name.toStdString() << "> at port " << i << " does not have a default valueand was not passed.";
|
||||
|
||||
|
||||
auto message = boost::format("Error: Argument of type <%s> at port %d does not have a default value and was not passed.")
|
||||
% _out_ports[i].data_type->type().name.toStdString() % i;
|
||||
|
||||
setValidationMessage(message.str().c_str());
|
||||
setValidationMessage(sstream.str().c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "noggit/ui/tools/NodeEditor/Nodes/Widgets/ProcedureSelector.hpp"
|
||||
|
||||
#include <noggit/ui/tools/NodeEditor/NodeRegistry.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include <sstream>
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QDir>
|
||||
@@ -120,10 +120,10 @@ void LogicProcedureNode::compute()
|
||||
{
|
||||
setValidationState(NodeValidationState::Error);
|
||||
|
||||
auto message = boost::format("Error: Value of type <%s> at port %d was not returned by a function.")
|
||||
% _out_ports[i].data_type->type().name.toStdString() % i;
|
||||
auto sstream = std::stringstream();
|
||||
sstream << "Error: Value of type <" << _out_ports[i].data_type->type().name.toStdString() << "> at port " << i << " was not returned by a function.";
|
||||
|
||||
setValidationMessage(message.str().c_str());
|
||||
setValidationMessage(sstream.str().c_str());
|
||||
delete _scene;
|
||||
_scene = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user