Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-57

Wrong indentation for opening curly brace for =, += and -= operator overloads

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 1.0, Qt Creator 1.1, Qt Creator 1.1.1, Qt Creator 1.2, Qt Creator 1.2.1, Qt Creator 1.2.90, Qt Creator 1.3.81 (2.0.0-alpha), Qt Creator 1.3.83 (2.0.0-beta)
    • Editors
    • None
    • 27578a6c2c78138d6259f88660867e50ebaac604

    Description

      The opening curly brace indentation for the =, += and -= operator overloads is incorrect, it is indented far too much:

      inline QString &operator+=(QChar::SpecialCharacter c)
                                {
          return append(QChar(c));
      }
      

      This problem does not occur for other operator overloads like ==, != and >=.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes