summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/HostAddress.h')
-rw-r--r--Swiften/Network/HostAddress.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Network/HostAddress.h b/Swiften/Network/HostAddress.h
index 2c9760d..fa34df4 100644
--- a/Swiften/Network/HostAddress.h
+++ b/Swiften/Network/HostAddress.h
@@ -1,13 +1,15 @@
-#ifndef SWIFTEN_HOSTADDRESS
-#define SWIFTEN_HOSTADDRESS
+#pragma once
#include <string>
#include <vector>
namespace Swift {
+ class String;
+
class HostAddress {
public:
HostAddress();
+ HostAddress(const String&);
HostAddress(const unsigned char* address, int length);
const std::vector<unsigned char>& getRawAddress() const {
@@ -20,5 +22,3 @@ namespace Swift {
std::vector<unsigned char> address_;
};
}
-
-#endif