examples: Initialize vectors with braces instead of =
This commit is contained in:
@@ -42,7 +42,7 @@ int main (int argc, char *argv[])
|
||||
std::ofstream tablefile ("table-frame-success-rate-be.plt");
|
||||
|
||||
// clang-format off
|
||||
std::vector <std::string> modes = {
|
||||
const std::vector <std::string> modes {
|
||||
"EhtMcs0",
|
||||
"EhtMcs1",
|
||||
"EhtMcs2",
|
||||
|
||||
@@ -40,7 +40,7 @@ int main (int argc, char *argv[])
|
||||
std::ofstream tablefile ("table-frame-success-rate-ax.plt");
|
||||
|
||||
// clang-format off
|
||||
std::vector <std::string> modes = {
|
||||
const std::vector <std::string> modes {
|
||||
"HeMcs0",
|
||||
"HeMcs1",
|
||||
"HeMcs2",
|
||||
|
||||
@@ -40,7 +40,7 @@ int main (int argc, char *argv[])
|
||||
std::ofstream tablefile ("table-frame-success-rate-n.plt");
|
||||
|
||||
// clang-format off
|
||||
std::vector <std::string> modes = {
|
||||
const std::vector <std::string> modes {
|
||||
"HtMcs0",
|
||||
"HtMcs1",
|
||||
"HtMcs2",
|
||||
|
||||
@@ -42,7 +42,7 @@ int main (int argc, char *argv[])
|
||||
std::ofstream tablefile ("table-frame-success-rate-ofdm.plt");
|
||||
|
||||
// clang-format off
|
||||
std::vector <std::string> modes = {
|
||||
const std::vector <std::string> modes {
|
||||
"OfdmRate6Mbps",
|
||||
"OfdmRate9Mbps",
|
||||
"OfdmRate12Mbps",
|
||||
|
||||
@@ -41,7 +41,7 @@ int main (int argc, char *argv[])
|
||||
std::ofstream tablefile ("table-frame-success-rate-ac.plt");
|
||||
|
||||
// clang-format off
|
||||
std::vector<std::string> modes = {
|
||||
const std::vector<std::string> modes {
|
||||
"VhtMcs0",
|
||||
"VhtMcs1",
|
||||
"VhtMcs2",
|
||||
|
||||
Reference in New Issue
Block a user