summaryrefslogtreecommitdiff
path: root/Userland/Applications/HexEditor/HexEditor.cpp
diff options
context:
space:
mode:
authorArne Elster <arne@elster.li>2021-11-23 11:45:48 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-23 23:25:47 -0800
commit277ac486493371e16d874c63418cd2757ea470a2 (patch)
treefb3c8f8391cb44db39a04f52d48f351063388bfc /Userland/Applications/HexEditor/HexEditor.cpp
parent9f389661056419c0908094cf1cf129508bd519d8 (diff)
downloadserenity-277ac486493371e16d874c63418cd2757ea470a2.zip
HexEditor: Don't unnecessarily abbreviate variable names
There's enough line space to use readable variable names.
Diffstat (limited to 'Userland/Applications/HexEditor/HexEditor.cpp')
-rw-r--r--Userland/Applications/HexEditor/HexEditor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp
index bcfa169c82..fefb21ef0b 100644
--- a/Userland/Applications/HexEditor/HexEditor.cpp
+++ b/Userland/Applications/HexEditor/HexEditor.cpp
@@ -123,13 +123,13 @@ bool HexEditor::save_as(int fd)
}
if (m_document->type() == HexDocument::Type::File) {
- HexDocumentFile* fileDoc = static_cast<HexDocumentFile*>(m_document.ptr());
- if (!fileDoc->write_to_file(new_file))
+ HexDocumentFile* fileDocument = static_cast<HexDocumentFile*>(m_document.ptr());
+ if (!fileDocument->write_to_file(new_file))
return false;
- fileDoc->set_file(new_file);
+ fileDocument->set_file(new_file);
} else {
- HexDocumentMemory* memDoc = static_cast<HexDocumentMemory*>(m_document.ptr());
- if (!memDoc->write_to_file(new_file))
+ HexDocumentMemory* memoryDocument = static_cast<HexDocumentMemory*>(m_document.ptr());
+ if (!memoryDocument->write_to_file(new_file))
return false;
m_document = make<HexDocumentFile>(new_file);
}