diff HexFile.h @ 8:21ce6187d32e

Minor changes done by automatic style checker
author Ideenmodellierer
date Mon, 12 Jan 2026 13:51:17 +0000
parents 0b3630a29ad8
children
line wrap: on
line diff
--- a/HexFile.h	Mon Jan 12 13:49:16 2026 +0000
+++ b/HexFile.h	Mon Jan 12 13:51:17 2026 +0000
@@ -39,8 +39,8 @@
 //  2014-07-07 : [jDG] Cleanups for Subsurface google-summer-of-code.
 //  2014-07-25 : [jDG] BSD 2-clause license.
 
+#include <QFile>
 #include <QtGlobal>
-#include <QFile>
 
 class QProgressBar;
 
@@ -50,13 +50,13 @@
 /// \note that OSTC3 firmware is NOT distributed in Intel HEX format,
 ///       but is first flatened, then encrypted, then written back
 ///       in a similar looking format.
-class  HexFile
+class HexFile
 {
-    QFile   _file;
-    size_t  _memSize;
-    size_t  _baseAddress;   ///< Base for extended address modes.
+    QFile _file;
+    size_t _memSize;
+    size_t _baseAddress; ///< Base for extended address modes.
 
-    unsigned char* _buffer;
+    unsigned char *_buffer;
 
     /// \brief Read and interpret on line of the HEX file.
     void readLine();
@@ -72,10 +72,10 @@
 
     /// \brief Load the .hex file into the internal buffer.
     /// \return TRUE is ok, FAlSE if some error occurs.
-    void load(const QString& fileName);
+    void load(const QString &fileName);
 
     /// \brief Return a pointer to the loaded data.
-    const unsigned char* data() const;
+    const unsigned char *data() const;
 
     /// \brief Returns the 4 bytes checksum of the loaded data.
     ///
@@ -85,8 +85,8 @@
     unsigned int checksum() const;
 
     /// \brief Save to encrypted HEX file.
-    void saveEncrypted(const QString& fileName, unsigned char secretKey[16]);
+    void saveEncrypted(const QString &fileName, unsigned char secretKey[16]);
 
     /// \brief Reload encrypted HEX file.
-    void loadEncrypted(const QString& fileName, unsigned char secretKey[16]);
+    void loadEncrypted(const QString &fileName, unsigned char secretKey[16]);
 };