We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4417c64 commit 35f78c8Copy full SHA for 35f78c8
src/AvTranscoder/Option.hpp
@@ -79,7 +79,7 @@ class AvExport Option
79
void setRatio(const int num, const int den);
80
81
// array of childs
82
- bool hasChild() const { return _childOptions.size(); }
+ bool hasChild() const { return ! _childOptions.empty(); }
83
const std::vector<Option>& getChilds() const { return _childOptions; }
84
const Option& getChildAtIndex(const size_t index) const { return _childOptions.at(index); }
85
int getDefaultChildIndex() const { return _defaultChildIndex; }
0 commit comments