From 277ac486493371e16d874c63418cd2757ea470a2 Mon Sep 17 00:00:00 2001 From: Arne Elster Date: Tue, 23 Nov 2021 11:45:48 +0100 Subject: HexEditor: Don't unnecessarily abbreviate variable names There's enough line space to use readable variable names. --- Userland/Applications/HexEditor/HexEditor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Userland/Applications/HexEditor/HexEditor.cpp') 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(m_document.ptr()); - if (!fileDoc->write_to_file(new_file)) + HexDocumentFile* fileDocument = static_cast(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(m_document.ptr()); - if (!memDoc->write_to_file(new_file)) + HexDocumentMemory* memoryDocument = static_cast(m_document.ptr()); + if (!memoryDocument->write_to_file(new_file)) return false; m_document = make(new_file); } -- cgit v1.2.3