summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/ClientError.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/Swiften/Client/ClientError.h b/Swiften/Client/ClientError.h
index d81cc0e..d4f280c 100644
--- a/Swiften/Client/ClientError.h
+++ b/Swiften/Client/ClientError.h
@@ -1,11 +1,10 @@
-#ifndef SWIFTEN_ClientError_H
-#define SWIFTEN_ClientError_H
+#pragma once
namespace Swift {
class ClientError {
public:
enum Type {
- NoError,
+ UnknownError,
DomainNameResolveError,
ConnectionError,
ConnectionReadError,
@@ -21,7 +20,7 @@ namespace Swift {
ClientCertificateError
};
- ClientError(Type type = NoError) : type_(type) {}
+ ClientError(Type type = UnknownError) : type_(type) {}
Type getType() const { return type_; }
@@ -29,5 +28,3 @@ namespace Swift {
Type type_;
};
}
-
-#endif