mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fixed potentially uninitialized value warnings emitted by clang
Removed unused variable from DigitalInput class Removed extraneous explicit std::string conversions in Preferences class Change-Id: Ia445abfd136a7b3e7f0491ed22aaa057814bcc8f
This commit is contained in:
committed by
Brad Miller (WPI)
parent
974e301a8b
commit
f4d84cdd4f
@@ -336,9 +336,9 @@ std::string Preferences::Get(const char *key) {
|
||||
Synchronized sync(m_tableLock);
|
||||
if (key == nullptr) {
|
||||
wpi_setWPIErrorWithContext(NullParameter, "key");
|
||||
return std::string("");
|
||||
return "";
|
||||
}
|
||||
return m_values[std::string(key)];
|
||||
return m_values[key];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user