qgumboattribute.cpp 299 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "qgumboattribute.h"
#include <stdexcept>


QGumboAttribute::QGumboAttribute(const char* n, const char* value) {
    if (!n)
        throw std::invalid_argument("attribute name can't be empty");

    name_ = QString::fromUtf8(n);

    if (value)
        value_ = QString::fromUtf8(value);
}