summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-07 02:15:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commita7f1f1c34b99ad2bad25111746725c3736f9442f (patch)
tree7abde4d6302983a25eb3a95689e5a78ea1e405a5 /Userland/Applications/Spreadsheet
parentfac25501436dc3c85c0cb482942173240e94a5e4 (diff)
downloadserenity-a7f1f1c34b99ad2bad25111746725c3736f9442f.zip
LibCore: Use ErrorOr<T> for Core::File::open()
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/ExportDialog.cpp1
-rw-r--r--Userland/Applications/Spreadsheet/Readers/Test/TestXSV.cpp1
-rw-r--r--Userland/Applications/Spreadsheet/Workbook.cpp2
3 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/ExportDialog.cpp b/Userland/Applications/Spreadsheet/ExportDialog.cpp
index 62a82f53be..680d770e66 100644
--- a/Userland/Applications/Spreadsheet/ExportDialog.cpp
+++ b/Userland/Applications/Spreadsheet/ExportDialog.cpp
@@ -22,6 +22,7 @@
#include <LibGUI/TextBox.h>
#include <LibGUI/Wizards/WizardDialog.h>
#include <LibGUI/Wizards/WizardPage.h>
+#include <string.h>
#include <unistd.h>
// This is defined in ImportDialog.cpp, we can't include it twice, since the generated symbol is exported.
diff --git a/Userland/Applications/Spreadsheet/Readers/Test/TestXSV.cpp b/Userland/Applications/Spreadsheet/Readers/Test/TestXSV.cpp
index 5dbe2a5966..0103e4c6c0 100644
--- a/Userland/Applications/Spreadsheet/Readers/Test/TestXSV.cpp
+++ b/Userland/Applications/Spreadsheet/Readers/Test/TestXSV.cpp
@@ -10,6 +10,7 @@
#include "../XSV.h"
#include <AK/ByteBuffer.h>
#include <LibCore/File.h>
+#include <string.h>
TEST_CASE(should_parse_valid_data)
{
diff --git a/Userland/Applications/Spreadsheet/Workbook.cpp b/Userland/Applications/Spreadsheet/Workbook.cpp
index 40c94e12fe..df9b331d4e 100644
--- a/Userland/Applications/Spreadsheet/Workbook.cpp
+++ b/Userland/Applications/Spreadsheet/Workbook.cpp
@@ -51,7 +51,7 @@ Result<bool, String> Workbook::load(const StringView& filename)
sb.append("Failed to open ");
sb.append(filename);
sb.append(" for reading. Error: ");
- sb.append(file_or_error.error().string());
+ sb.appendff("{}", file_or_error.error());
return sb.to_string();
}