Skip to content

Commit 35f78c8

Browse files
author
Clement Champetier
committed
Option: fix compilation warning in hasChild method
1 parent 4417c64 commit 35f78c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/Option.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class AvExport Option
7979
void setRatio(const int num, const int den);
8080

8181
// array of childs
82-
bool hasChild() const { return _childOptions.size(); }
82+
bool hasChild() const { return ! _childOptions.empty(); }
8383
const std::vector<Option>& getChilds() const { return _childOptions; }
8484
const Option& getChildAtIndex(const size_t index) const { return _childOptions.at(index); }
8585
int getDefaultChildIndex() const { return _defaultChildIndex; }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy