File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
801
801
std::string callableName = _baseCallables.begin ()->astNodeName ();
802
802
if (_baseCallables.begin ()->isVariable ())
803
803
callableName = " function" ;
804
- std::string distinguishigProperty = _baseCallables.begin ()->distinguishingProperty ();
804
+ std::string distinguishingProperty = _baseCallables.begin ()->distinguishingProperty ();
805
805
806
806
bool foundVariable = false ;
807
807
for (auto const & base: _baseCallables)
@@ -811,7 +811,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
811
811
std::string message =
812
812
" Derived contract must override " + callableName + " \" " +
813
813
_baseCallables.begin ()->name () +
814
- " \" . Two or more base classes define " + callableName + " with same " + distinguishigProperty + " ." ;
814
+ " \" . Two or more base classes define " + callableName + " with same " + distinguishingProperty + " ." ;
815
815
816
816
if (foundVariable)
817
817
message +=
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ void solidity::test::createFilesWithParentDirs(std::set<boost::filesystem::path>
44
44
void solidity::test::createFileWithContent (boost::filesystem::path const & _path, std::string const & _content)
45
45
{
46
46
if (boost::filesystem::is_regular_file (_path))
47
- BOOST_THROW_EXCEPTION (std::runtime_error (" File already exists: \" " + _path.string () + " \" ." )); \
47
+ BOOST_THROW_EXCEPTION (std::runtime_error (" File already exists: \" " + _path.string () + " \" ." ));
48
48
49
49
// Use binary mode to avoid line ending conversion on Windows.
50
50
std::ofstream newFile (_path.string (), std::ofstream::binary);
51
51
if (newFile.fail () || !boost::filesystem::is_regular_file (_path))
52
- BOOST_THROW_EXCEPTION (std::runtime_error (" Failed to create a file: \" " + _path.string () + " \" ." )); \
52
+ BOOST_THROW_EXCEPTION (std::runtime_error (" Failed to create a file: \" " + _path.string () + " \" ." ));
53
53
54
54
newFile << _content;
55
55
}
You can’t perform that action at this time.
0 commit comments