Address of stack memory associated with local variable 'replOperation' returned to caller

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I run clang-tidy locally in vim and it caught that in this function we take an input parameter by copy and then return a reference to its memory (which is bad because the temporary object will be destroyed when it goes out of scope.

      We should fix this.

              Assignee:
              Alexander Taskov (Inactive)
              Reporter:
              Matthew Saltz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: