Switches C++ strings to StringRef (#336)

This commit is contained in:
Thad House
2016-12-20 22:08:24 -08:00
committed by Peter Johnson
parent 8cec948699
commit 8e4afc95c7
8 changed files with 83 additions and 68 deletions

View File

@@ -11,11 +11,12 @@
#include "HAL/HAL.h"
#include "WPIErrors.h"
#include "llvm/StringRef.h"
using namespace frc;
/** The Preferences table name */
static const char* kTableName = "Preferences";
static llvm::StringRef kTableName{"Preferences"};
void Preferences::Listener::ValueChanged(ITable* source, llvm::StringRef key,
std::shared_ptr<nt::Value> value,