summaryrefslogtreecommitdiff
path: root/library/errorLogging.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/errorLogging.h')
-rw-r--r--library/errorLogging.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/library/errorLogging.h b/library/errorLogging.h
index 5fc5dacd..7b2b32c1 100644
--- a/library/errorLogging.h
+++ b/library/errorLogging.h
@@ -8,36 +8,36 @@ class Zstring;
namespace FreeFileSync
{
- class ErrorLogging
+class ErrorLogging
+{
+public:
+ ErrorLogging() : errorCount(0) {}
+
+ void logError(const wxString& errorMessage);
+ void logWarning(const wxString& warningMessage);
+ void logInfo(const wxString& infoMessage);
+
+ int errorsTotal()
+ {
+ return errorCount;
+ }
+
+ const std::vector<wxString>& getFormattedMessages()
{
- public:
- ErrorLogging() : errorCount(0) {}
-
- void logError(const wxString& errorMessage);
- void logWarning(const wxString& warningMessage);
- void logInfo(const wxString& infoMessage);
-
- int errorsTotal()
- {
- return errorCount;
- }
-
- const std::vector<wxString>& getFormattedMessages()
- {
- return formattedMessages;
- }
-
- size_t messageCount()
- {
- return formattedMessages.size();
- }
-
- private:
- wxString assembleMessage(const wxString& prefix, const wxString& message);
-
- std::vector<wxString> formattedMessages; //list of non-resolved errors and warnings
- int errorCount;
- };
+ return formattedMessages;
+ }
+
+ size_t messageCount()
+ {
+ return formattedMessages.size();
+ }
+
+private:
+ wxString assembleMessage(const wxString& prefix, const wxString& message);
+
+ std::vector<wxString> formattedMessages; //list of non-resolved errors and warnings
+ int errorCount;
+};
}
#endif // ERRORLOGGING_H_INCLUDED
bgstack15