Browse Source

fixed msvc build:

cl-refactor
arkpar 10 years ago
parent
commit
534bd2a2f3
  1. 3
      mix/CodeModel.cpp
  2. 2
      mix/CodeModel.h

3
mix/CodeModel.cpp

@ -28,6 +28,7 @@
#include <libdevcore/Common.h>
#include <libevmcore/SourceLocation.h>
#include <libsolidity/AST.h>
#include <libsolidity/Types.h>
#include <libsolidity/ASTVisitor.h>
#include <libsolidity/CompilerStack.h>
#include <libsolidity/SourceReferenceFormatter.h>
@ -308,7 +309,7 @@ dev::bytes const& CodeModel::getStdContractCode(const QString& _contractName, co
return m_compiledContracts.at(_contractName);
}
SolidityType CodeModel::nodeType(solidity::Type const* _type)
SolidityType CodeModel::nodeType(dev::solidity::Type const* _type)
{
SolidityType r { SolidityType::Type::UnsignedInteger, 32, false, false, QString::fromStdString(_type->toString()), std::vector<SolidityDeclaration>(), std::vector<QString>() };
if (!_type)

2
mix/CodeModel.h

@ -148,7 +148,7 @@ public:
/// Reset code model
Q_INVOKABLE void reset() { reset(QVariantMap()); }
/// Convert solidity type info to mix type
static SolidityType nodeType(solidity::Type const* _type);
static SolidityType nodeType(dev::solidity::Type const* _type);
signals:
/// Emited on compilation state change

Loading…
Cancel
Save