Bug 354667 - new check: Find uneeded toVector/toList conversions
Summary: new check: Find uneeded toVector/toList conversions
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-01 02:03 UTC by Sergio Martins
Modified: 2016-02-11 21:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Martins 2015-11-01 02:03:33 UTC
which allocate...
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setBysecond(defaultRR->bySeconds().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setByminute(defaultRR->byMinutes().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setByhour(defaultRR->byHours().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setBymonthday(defaultRR->byMonthDays().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setByyearday(defaultRR->byYearDays().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setByweekno(defaultRR->byWeekNumbers().toVector().toStdVector());
kdesupport/libkolab/conversion/kcalconversion.cpp:    rrule.setBymonth(defaultRR->byMonths().toVector().toStdVector());
Comment 1 Sergio Martins 2016-02-11 21:34:37 UTC
Fixed by container-anti-pattern