Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16425

QUrl::setUrl() doesn't call detach()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.2
    • 4.8.0
    • Core: URL Handling
    • None
    • 91596c9c08208690894ec11a3a99eac57ad17f2b

      When calling setUrl() on a QUrl instance, QUrl doesn't detaches itself.

      Example:

      	QUrl u1("http://aaa.com");
      	QUrl u2 = u1;
      	u2 = "http://bbb.com";
      	qDebug() << u1 << u2; // OK: QUrl( "http://aaa.com" )   QUrl( "http://bbb.com" )
      
      	QUrl u3("http://aaa.com");
      	QUrl u4 = u2;
      	u4.setUrl("http://bbb.com");
      	qDebug() << u3 << u4; // WRONG: QUrl( "http://bbb.com" )   QUrl( "http://bbb.com" )
      
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            gregschlom Gregory Schlomoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes