examples: Initialize vectors with braces instead of =

This commit is contained in:
Eduardo Almeida
2022-10-06 20:45:41 +01:00
parent 71b5f9f21f
commit 39cc8431e1
5 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",