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

Details

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

    Description

      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 */
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: