pass a `const QString& latestVersion` so that you're passing by reference