mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Merge branch 'master' of https://github.com/tvdzwan/hyperion
Former-commit-id: cd8dcbef62cb2280d5abd9bbe6624bfb2479a61d
This commit is contained in:
commit
f598f6e417
@ -45,7 +45,7 @@ void OptionsParser::parse(int argc, const char* argv[]) throw(runtime_error)
|
||||
|
||||
vector<string> v(&argv[1], &argv[argc]);
|
||||
|
||||
ParserState state(*this, v);
|
||||
ParserState state(/* *this,*/ v);
|
||||
|
||||
for(; !state.end(); state.advance()) {
|
||||
|
||||
@ -164,7 +164,7 @@ Parameter& ParameterSet::operator[](char c) const {
|
||||
for(std::list<Parameter*>::const_iterator i = parameters.begin(); i!= parameters.end(); i++) {
|
||||
if((*i)->shortOption() == c) return *(*i);
|
||||
}
|
||||
throw out_of_range("ParameterSet["+c+string("]"));
|
||||
throw out_of_range("ParameterSet["+string(&c)+string("]"));
|
||||
}
|
||||
|
||||
|
||||
@ -185,8 +185,8 @@ Parameter& ParameterSet::operator[](const string& param) const {
|
||||
*/
|
||||
|
||||
|
||||
ParserState::ParserState(OptionsParser &opts, vector<string>& args) :
|
||||
opts(opts), arguments(args), iterator(args.begin())
|
||||
ParserState::ParserState(/*OptionsParser &opts, */vector<string>& args) :
|
||||
/*opts(opts),*/ arguments(args), iterator(args.begin())
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -129,11 +129,11 @@ public:
|
||||
void advance();
|
||||
bool end() const;
|
||||
protected:
|
||||
ParserState(OptionsParser &opts, std::vector<std::string>& args);
|
||||
ParserState(/*OptionsParser &opts,*/ std::vector<std::string>& args);
|
||||
private:
|
||||
friend class OptionsParser;
|
||||
|
||||
OptionsParser &opts;
|
||||
// OptionsParser &opts;
|
||||
const std::vector<std::string> &arguments;
|
||||
std::vector<std::string>::const_iterator iterator;
|
||||
};
|
||||
|
@ -1 +1 @@
|
||||
42debced0ba50d4c1801b25ae3ce1a546ec7a94e
|
||||
c0e8e51a825f30e490de8971fef3a31bff1df67a
|
@ -363,7 +363,7 @@ void Hyperion::clear(int priority)
|
||||
_muxer.clearInput(priority);
|
||||
|
||||
// update leds if necessary
|
||||
if (priority < _muxer.getCurrentPriority());
|
||||
if (priority < _muxer.getCurrentPriority())
|
||||
{
|
||||
update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user