Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. Prepending an ampersand in code wrapping incorrectly appends a semicolon.
QtWS25 Last Chance

Prepending an ampersand in code wrapping incorrectly appends a semicolon.

Scheduled Pinned Locked Moved Qt.io webservices
4 Posts 3 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mlong
    wrote on last edited by
    #1

    In "this post":http://developer.qt.nokia.com/forums/viewthread/7888/ I noticed that when I added

    @
    connect(&tcpSocket;, ...) // Typed no semicolon after tcpSocket, but one appears.
    @

    the resulting text has a semicolon appended. If you then go to edit the post, the semicolon has appeared there, too.

    Hey, it happened here too! :-)

    I opened QTWEBSITE-264 on JIRA, as well.

    Software Engineer
    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      For the time being you can use

      @&tcpSocket@

      in your code, so it then looks like this:

      @
      connect(&tcpSocket, ...);
      @

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        Ah, thanks. Good to know!

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          @
          QFile xmlFile("table.xml");
          // translated to
          QFile xmlFile("table.xml" & #41;; // without the blank between the ampersand and the hash
          @

          Looks like something is broken with character replacement.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved