mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Replaced ::std with std for readability/consistency.
Change-Id: I65f9673c237d3513f99827e28963eb22ae9df0c2
This commit is contained in:
@@ -28,7 +28,7 @@ public:
|
||||
NetworkTableKeyListenerAdapter(std::string relativeKey, std::string fullKey, NetworkTable* targetSource, ITableListener* targetListener);
|
||||
virtual ~NetworkTableKeyListenerAdapter();
|
||||
void ValueChanged(ITable* source, const std::string& key, EntryValue value, bool isNew);
|
||||
void ValueChanged(::std::shared_ptr<ITable> source, const std::string& key,
|
||||
void ValueChanged(std::shared_ptr<ITable> source, const std::string& key,
|
||||
EntryValue value, bool isNew) {
|
||||
ValueChanged(source.get(), key, value, isNew);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class NetworkTableListenerAdapter : public ITableListener {
|
||||
virtual ~NetworkTableListenerAdapter();
|
||||
void ValueChanged(ITable* source, const std::string& key, EntryValue value,
|
||||
bool isNew);
|
||||
void ValueChanged(::std::shared_ptr<ITable> source, const std::string& key,
|
||||
void ValueChanged(std::shared_ptr<ITable> source, const std::string& key,
|
||||
EntryValue value, bool isNew) {
|
||||
ValueChanged(source.get(), key, value, isNew);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
NetworkTableSubListenerAdapter(std::string& prefix, NetworkTable* targetSource, ITableListener* targetListener);
|
||||
virtual ~NetworkTableSubListenerAdapter();
|
||||
void ValueChanged(ITable* source, const std::string& key, EntryValue value, bool isNew);
|
||||
void ValueChanged(::std::shared_ptr<ITable> source, const std::string& key,
|
||||
void ValueChanged(std::shared_ptr<ITable> source, const std::string& key,
|
||||
EntryValue value, bool isNew) {
|
||||
ValueChanged(source.get(), key, value, isNew);
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ class ITableListener {
|
||||
* @param value the new value
|
||||
* @param isNew true if the key did not previously exist in the table, otherwise it is false
|
||||
*/
|
||||
virtual void ValueChanged(::std::shared_ptr<ITable> source, const std::string& key, EntryValue value, bool isNew) = 0;
|
||||
virtual void ValueChanged(std::shared_ptr<ITable> source, const std::string& key, EntryValue value, bool isNew) = 0;
|
||||
|
||||
virtual void ValueChanged(ITable* source, const std::string& key,
|
||||
EntryValue value, bool isNew) {
|
||||
ValueChanged(::std::shared_ptr<ITable>(source, NullDeleter<ITable>()), key, value, isNew);
|
||||
ValueChanged(std::shared_ptr<ITable>(source, NullDeleter<ITable>()), key, value, isNew);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user