mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
VideoProperty: rename type() to getType().
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class VideoProperty {
|
||||
return CameraServerJNI.getPropertyName(m_handle);
|
||||
}
|
||||
|
||||
public Type type() {
|
||||
public Type getType() {
|
||||
return m_type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user