0

I'm trying to compile KDiff3 in QT5 but I'm stuck on this error, can anyone help?

error: no match for 'operator*' (operand types are 'QAtomicInt' and 'double')

m_pProgressBar->setValue( int( 1000.0 * ( i->m_current * (i->m_dRangeMax - i->m_dRangeMin) / i->m_maxNofSteps + i->m_dRangeMin ) ) );

The error relates to this section of the above: m_current *

mparkuk
  • 509
  • 7
  • 14

1 Answers1

0

operator int() has been removed, try

i->m_current.loadAcquire()
DmitryARN
  • 648
  • 3
  • 10
  • Thanks for your reply but this still gives me the same error message, when int() is removed. – mparkuk Mar 13 '14 at 09:13
  • The int() operator has been removed from QAtomicInt. Replace "i->m_current" with "i->m_current.loadAcquire()". – DmitryARN Mar 13 '14 at 09:47
  • I've try this but still getting a similar error: `m_pProgressBar->setValue( 1000.0 * ( i->m_current.loadAcquire() * (i->m_dRangeMax - i->m_dRangeMin) / i->m_maxNofSteps + i->m_dRangeMin ) );` **error: no match for 'operator/' (operand types are 'double' and 'QAtomicInt')** – mparkuk Mar 13 '14 at 09:53