Skip to content

Commit

Permalink
chore: remove extra ; to avoid gcc pedantic error
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Mar 18, 2024
1 parent 5a8d31a commit a0cacb4
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions include/realizations/catchment/Formulation_Constructors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace realization {
return [](std::string id, std::shared_ptr<data_access::GenericDataProvider> forcing_provider, utils::StreamHandler output_stream) -> std::shared_ptr<Catchment_Formulation>{
return std::make_shared<T>(id, forcing_provider, output_stream);
};
};
}

static std::map<std::string, constructor> formulations = {
{"bmi_c++", create_formulation_constructor<Bmi_Cpp_Formulation>()},
Expand Down Expand Up @@ -83,7 +83,7 @@ namespace realization {
"\", provider: \"" + forcing_config.provider + "\"");
}
return formulation_constructor(identifier, fp, output_stream);
};
}

static std::string get_formulation_key(const boost::property_tree::ptree &tree) {
/*for (auto &node : tree) {
Expand Down
2 changes: 1 addition & 1 deletion include/realizations/config/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ namespace realization{
};


};//end namespace config
}//end namespace config
}//end namespace realization
#endif //NGEN_REALIZATION_CONFIG_H
2 changes: 1 addition & 1 deletion include/realizations/config/forcing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ namespace realization{
};


};//end namespace config
}//end namespace config
}//end namespace realization
#endif //NGEN_REALIZATION_CONFIG_FORCING_H
2 changes: 1 addition & 1 deletion include/realizations/config/formulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ namespace realization{
}
};

};//end namespace config
}//end namespace config
}//end namespace realization
#endif //NGEN_REALIZATION_CONFIG_FORMULATION_H
2 changes: 1 addition & 1 deletion include/realizations/config/routing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ namespace realization{
}
};

};//end namespace config
}//end namespace config
}//end namespace realization
#endif //NGEN_REALIZATION_CONFIG_ROUTING_H
2 changes: 1 addition & 1 deletion include/realizations/config/time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ namespace realization{
);
}
};
};//end namespace config
}//end namespace config
}//end namespace realization
#endif //NGEN_REALIZATION_CONFIG_TIME_H
2 changes: 1 addition & 1 deletion src/geojson/FeatureCollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Feature FeatureCollection::remove_feature_by_id(std::string ID) {

int FeatureCollection::get_size() {
return features.size();
};
}

bool FeatureCollection::is_empty() {
return features.size() == 0;
Expand Down
10 changes: 5 additions & 5 deletions src/geojson/JSONProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ long JSONProperty::as_natural_number() const {
// Throw an exception since this can't be considered a natural number
std::string message = key + " is a " + get_propertytype_name(get_type()) + " and cannot be converted into a natural number.";
throw std::runtime_error(message);
};
}

/**
* Get the type of the property (Natural, Real, String, etc)
Expand All @@ -27,7 +27,7 @@ long JSONProperty::as_natural_number() const {
*/
PropertyType JSONProperty::get_type() const {
return type;
};
}


double JSONProperty::as_real_number() const {
Expand All @@ -40,7 +40,7 @@ double JSONProperty::as_real_number() const {

std::string message = key + " is a " + get_propertytype_name(get_type()) + " and cannot be converted into a real number.";
throw std::runtime_error(message);
};
}

bool JSONProperty::as_boolean() const {
if (type == PropertyType::Boolean) {
Expand All @@ -49,7 +49,7 @@ bool JSONProperty::as_boolean() const {

std::string message = key + " is a " + get_propertytype_name(get_type()) + " and cannot be converted into a boolean.";
throw std::runtime_error(message);
};
}

std::vector<JSONProperty> JSONProperty::as_list() const {
std::vector<JSONProperty> copy;
Expand Down Expand Up @@ -131,7 +131,7 @@ std::string JSONProperty::as_string() const {

std::string message = key + " is a " + get_propertytype_name(get_type()) + " and cannot be converted into a string.";
throw std::runtime_error(message);
};
}

JSONProperty JSONProperty::at(std::string key) const {
if (type == PropertyType::Object) {
Expand Down
4 changes: 2 additions & 2 deletions src/geopackage/ngen_sqlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sqlite_error::sqlite_error(const std::string& origin_func, int code, const std::
origin_func + " returned code " + std::to_string(code)
+ " (msg: " + sqlite3_errstr(code) + ")"
+ (extra.empty() ? "" : " " + extra)
){};
){}

const auto sqlite_not_started_error = sqlite_error{
"sqlite iteration is has not started, get() is not callable "
Expand All @@ -41,7 +41,7 @@ database::iterator::iterator(stmt_t&& stmt)
}

restart();
};
}

auto database::iterator::ptr_() const noexcept -> sqlite3_stmt*
{
Expand Down

0 comments on commit a0cacb4

Please sign in to comment.