示例#1
0
int main(int argc, char* argv[]) 
{
    Node* n1 = new Node(1);
    Node* n2 = new Node(2);
    Node* n3 = new Node(3);

    n1->neighbors.push_back(n2);
    n1->neighbors.push_back(n3);

    clone(n1);

    m_cleanup();

    return 0;
}
示例#2
0
void IconModel::useCacheFinished()
{
    if(g_offline) {
        emit error();
        return;
    }
    m_cleanup();
    foreach (IconObject *obj, g_dataList) {
        if (obj) {
            m_dataList.append(new IconObject(obj->name(), obj->title(),
                obj->icon(), obj->url()));
        }
    }
    emit iconChanged();
}
示例#3
0
文件: tss.hpp 项目: AlexS2172/IVRM
 void operator()(void* p) { m_cleanup(static_cast<T*>(p)); }
示例#4
0
IconModel::~IconModel() 
{
    m_cleanup();
}
static void m_signal_callback_handler(int signum)
{
	printf("Bye :)\n");
	m_cleanup();
	exit(signum);
}