mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[wpilibc] Use std::string_view instead of Twine (#3380)
Use fmtlib where needed for string formatting into std::string_view.
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
#include <atomic>
|
||||
#include <functional>
|
||||
#include <string_view>
|
||||
#include <thread>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include <hal/Types.h>
|
||||
#include <units/time.h>
|
||||
#include <wpi/Twine.h>
|
||||
#include <wpi/deprecated.h>
|
||||
#include <wpi/mutex.h>
|
||||
|
||||
@@ -71,7 +71,7 @@ class Notifier {
|
||||
*
|
||||
* @param name Name
|
||||
*/
|
||||
void SetName(const wpi::Twine& name);
|
||||
void SetName(std::string_view name);
|
||||
|
||||
/**
|
||||
* Change the handler function.
|
||||
|
||||
Reference in New Issue
Block a user