VideoProperty: rename type() to getType().

This commit is contained in:
Peter Johnson
2016-11-15 22:20:56 -08:00
parent 3381340eb5
commit 3c7d8063f6
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ int main() {
llvm::outs() << "Properties:\n";
for (const auto& prop : camera.EnumerateProperties()) {
llvm::outs() << " " << prop.GetName() << ": ";
switch (prop.type()) {
switch (prop.GetType()) {
case cs::VideoProperty::kBoolean:
llvm::outs() << "value=" << prop.Get()
<< " default=" << prop.GetDefault();

View File

@@ -41,7 +41,7 @@ class VideoProperty {
std::string GetName() const;
Type type() const { return m_type; }
Type GetType() const { return m_type; }
explicit operator bool() const { return m_type != kNone; }

View File

@@ -26,7 +26,7 @@ public class VideoProperty {
return CameraServerJNI.getPropertyName(m_handle);
}
public Type type() {
public Type getType() {
return m_type;
}