summaryrefslogtreecommitdiffstats
blob: 2abcdb0dc0deeea34d08a6c8af27d9b8f8938067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2011 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#include <Swiften/Base/SafeString.h>

#include <algorithm>

using namespace Swift;

SafeString::SafeString(const char* rawData) {
	for (const char* c = rawData; *c; ++c) {
		data.push_back(*c);
	}
}