Browse Source

small changes

cl-refactor
yann300 10 years ago
parent
commit
2c665ea0f9
  1. 3
      mix/CodeModel.cpp
  2. 2
      mix/CodeModel.h

3
mix/CodeModel.cpp

@ -333,7 +333,8 @@ void CodeModel::runCompilationJob(int _jobId)
void CodeModel::gasEstimation(solidity::CompilerStack const& _cs) void CodeModel::gasEstimation(solidity::CompilerStack const& _cs)
{ {
m_gasCostsMaps->deleteLater(); if (m_gasCostsMaps)
m_gasCostsMaps->deleteLater();
m_gasCostsMaps = new GasMapWrapper(this); m_gasCostsMaps = new GasMapWrapper(this);
for (std::string n: _cs.getContractNames()) for (std::string n: _cs.getContractNames())
{ {

2
mix/CodeModel.h

@ -244,7 +244,7 @@ private:
mutable dev::Mutex x_contractMap; mutable dev::Mutex x_contractMap;
ContractMap m_contractMap; ContractMap m_contractMap;
SourceMaps m_sourceMaps; SourceMaps m_sourceMaps;
GasMapWrapper* m_gasCostsMaps; GasMapWrapper* m_gasCostsMaps = 0;
std::unique_ptr<CodeHighlighterSettings> m_codeHighlighterSettings; std::unique_ptr<CodeHighlighterSettings> m_codeHighlighterSettings;
QThread m_backgroundThread; QThread m_backgroundThread;
BackgroundWorker m_backgroundWorker; BackgroundWorker m_backgroundWorker;

Loading…
Cancel
Save