https://bugs.kde.org/show_bug.cgi?id=489063

            Bug ID: 489063
           Summary: Invalid for loop syntax in
                    src/services/gpodder/GpodderServiceSettings.cpp
    Classification: Applications
           Product: amarok
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Services/gpodder.net
          Assignee: amarok-bugs-d...@kde.org
          Reporter: joe.y...@gmail.com
                CC: ste...@derkits.net
  Target Milestone: kf5

SUMMARY
Git commit 82c2626d7d26014de8638dcaf789adfc29178db0 introduced invalid for loop
syntax in src/services/gpodder/GpodderServiceSettings.cpp at line 133.

    foreach( devPtr, ptrList )
    for( devPtr : ptrList )

The for loop doesn't declare a type for devPtr and fails to compile. See:
https://launchpadlibrarian.net/736302361/buildlog_ubuntu-noble-amd64.amarok_2%3A3.0.0+git202406221530-0+yasi1~17~ubuntu24.04.1_BUILDING.txt.gz

STEPS TO REPRODUCE
1. Compile Amarok after git commit 82c2626d7d26014de8638dcaf789adfc29178db0
with gpodder support enabled.

OBSERVED RESULT
Compilation failure in src/services/gpodder/GpodderServiceSettings.cpp

EXPECTED RESULT
Compilation succeeds.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
I fixed this by removing mygpo::DevicePtr devPtr; at line 128 and declaring
const auto& devPtr in the for loop.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to