mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Replaced .h C headers with c-prefixed version and added std:: prefix to C standard library usage (#90)
This was not done to stdint.h for brevity in type names. Also removed "using namespace std;".
This commit is contained in:
committed by
Peter Johnson
parent
776a991d61
commit
5a82f73d9b
@@ -7,12 +7,11 @@
|
||||
|
||||
#include "Preferences.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "HAL/HAL.h"
|
||||
#include "WPIErrors.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
|
||||
/** The Preferences table name */
|
||||
static const char* kTableName = "Preferences";
|
||||
|
||||
@@ -61,8 +60,8 @@ std::string Preferences::GetString(llvm::StringRef key,
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the int at the given key. If this table does not have a value
|
||||
* for that position, then the given defaultValue value will be returned.
|
||||
* Returns the int at the given key. If this table does not have a value for
|
||||
* that position, then the given defaultValue value will be returned.
|
||||
*
|
||||
* @param key the key
|
||||
* @param defaultValue the value to return if none exists in the table
|
||||
|
||||
Reference in New Issue
Block a user