2
* Copyright (C) 2007-2013 Frank Mertens.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version
7
* 2 of the License, or (at your option) any later version.
11
#include "Variant.hpp"
17
String::String(const Variant &b)
18
: Super(cast<ByteArray>(b))
20
if (!Super::get()) Super::set(ByteArray::empty());
23
String::String(const Format &b)
25
*this = *ByteArray::join(b);
28
String::String(Ref<StringList> parts) { *this = join(parts); }