void tst_Q3CString::copy() { Q3CString e; e = "String E"; Q3CString ce = e.copy(); QCOMPARE(ce,(Q3CString)"String E"); e = "XXX"; QCOMPARE(ce,(Q3CString)"String E"); QCOMPARE(e,(Q3CString)"XXX"); }
//---------------------------------------------------------------------------- // NDnsWorker //---------------------------------------------------------------------------- NDnsWorker::NDnsWorker(QObject *_par, const Q3CString &_host) { success = cancelled = false; par = _par; host = _host.copy(); // do we need this to avoid sharing across threads? }