diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-31 18:39:13 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-31 18:39:13 (GMT) |
commit | 67d69026c64a96b4e0dc64391b8bdcf43a187fab (patch) | |
tree | 4dce2be022cc052c7744cb6af8d0f1eeb56850ce /Swiften/Network/HostAddress.h | |
parent | b3e6f21953d5d4b55ab9ffde78e1a1ff2a59dad1 (diff) | |
download | swift-contrib-67d69026c64a96b4e0dc64391b8bdcf43a187fab.zip swift-contrib-67d69026c64a96b4e0dc64391b8bdcf43a187fab.tar.bz2 |
HostAddress: Add constructor from String.
Diffstat (limited to 'Swiften/Network/HostAddress.h')
-rw-r--r-- | Swiften/Network/HostAddress.h | 8 |
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 |