Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70384 Extend Qt Lite Configure Tool for Whole Qt Configuration
  3. QTBUG-73311

Preparatory refactorings for elimination of global variables

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • None

      Guiding pseudocode from meeting:

      1) in foo::func, turn the global access into a parameter
      
      void foo::func(const QMap<...>& features)
      {
      // no more using the global
          for (auto x : features) /* stuff */
      }
      
      2) if necessary, turn the parameter into a member
      
      class foo
      {
      QMap<QByteArray, Feature> *features
      public:
          void some_setter(const QMap<QByteArray, Feature> &features);
      };
      
      void foo::func()
      {
          for (auto x : features) /* now fine */
      }
      

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

            villevoutilainen_qt Ville Voutilainen
            kari.oikarinen Kari Oikarinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes