forked from University/epr24pr5-ojanssen2
fix: another task one
This commit is contained in:
parent
b0c9f630a6
commit
dd43bd8bb4
1 changed files with 2 additions and 2 deletions
4
Task.cpp
4
Task.cpp
|
@ -81,7 +81,7 @@ namespace models
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string name = Util::read_string_between_percent(is);
|
string name = Util::read_string_between_percent(is);
|
||||||
if (name == "")
|
if (name.empty())
|
||||||
throw Error(102, "Ein Parameter eines Befehls konnte nicht gelesen werden");
|
throw Error(102, "Ein Parameter eines Befehls konnte nicht gelesen werden");
|
||||||
string description = Util::read_string_between_percent(is);
|
string description = Util::read_string_between_percent(is);
|
||||||
vector<int> children = Util::read_numbers(is);
|
vector<int> children = Util::read_numbers(is);
|
||||||
|
@ -110,7 +110,7 @@ namespace models
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const string name = Util::read_string_between_percent(is);
|
const string name = Util::read_string_between_percent(is);
|
||||||
if (name == "")
|
if (name.empty())
|
||||||
throw Error(102, "Ein Parameter eines Befehls konnte nicht gelesen werden");
|
throw Error(102, "Ein Parameter eines Befehls konnte nicht gelesen werden");
|
||||||
const string description = Util::read_string_between_percent(is);
|
const string description = Util::read_string_between_percent(is);
|
||||||
const vector<int> children = Util::read_numbers(is);
|
const vector<int> children = Util::read_numbers(is);
|
||||||
|
|
Loading…
Add table
Reference in a new issue