diff options
| Commit | d12937b1468a73041c6ee62a8fc6d5ab7d829cd2 (patch) | |
|---|---|---|
| Author | 2022-06-14 13:04:09 +0300 | |
| Committer | 2022-06-14 13:04:09 +0300 | |
| Files | 8753e61bca27454b2d71b608e3bb3ab5cf77966b /src | |
| FMI-OOP-P2_Tables-d12937b1468a73041c6ee62a8fc6d5ab7d829cd2.tar FMI-OOP-P2_Tables-d12937b1468a73041c6ee62a8fc6d5ab7d829cd2.tar.gz FMI-OOP-P2_Tables-d12937b1468a73041c6ee62a8fc6d5ab7d829cd2.zip | ||
| Parent | 72b920b16fc59d4d2ce4625924b832f7a679f35f (diff) | |
Autocommit at 14.06.2022 @ 13:04
1 files changed, 4 insertions, 0 deletions
| -rw-r--r-- | src/Models/CellString.cpp | 4 |
diff --git a/src/Models/CellString.cpp b/src/Models/CellString.cpp index 9c010c3..1b7010f 100644 --- a/src/Models/CellString.cpp +++ b/src/Models/CellString.cpp @@ -2,7 +2,11 @@ #include <cstring> CellString::CellString(const char* str) { + if (*str == '"') str++; value = String(str); + if (value[value.get_length() - 1] != '"') + throw std::logic_error("Error: Missing closing bracket!"); + } double CellString::getNumeralValue() const { |
