Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
971134a4
Commit
971134a4
authored
Jan 04, 2018
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[weather] More const ref arg passing
parent
d179c64f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dataengines/weather/ions/wetter.com/ion_wettercom.cpp
dataengines/weather/ions/wetter.com/ion_wettercom.cpp
+2
-2
dataengines/weather/ions/wetter.com/ion_wettercom.h
dataengines/weather/ions/wetter.com/ion_wettercom.h
+2
-2
No files found.
dataengines/weather/ions/wetter.com/ion_wettercom.cpp
View file @
971134a4
...
...
@@ -800,7 +800,7 @@ WeatherData::ForecastInfo WeatherData::ForecastPeriod::getWeather() const
return
result
;
}
int
WeatherData
::
ForecastPeriod
::
getMaxTemp
(
QVector
<
WeatherData
::
ForecastInfo
*>
forecastInfos
)
const
int
WeatherData
::
ForecastPeriod
::
getMaxTemp
(
const
QVector
<
WeatherData
::
ForecastInfo
*>
&
forecastInfos
)
const
{
int
result
=
-
273
;
foreach
(
const
WeatherData
::
ForecastInfo
*
forecast
,
forecastInfos
)
{
...
...
@@ -810,7 +810,7 @@ int WeatherData::ForecastPeriod::getMaxTemp(QVector<WeatherData::ForecastInfo *>
return
result
;
}
int
WeatherData
::
ForecastPeriod
::
getMinTemp
(
QVector
<
WeatherData
::
ForecastInfo
*>
forecastInfos
)
const
int
WeatherData
::
ForecastPeriod
::
getMinTemp
(
const
QVector
<
WeatherData
::
ForecastInfo
*>
&
forecastInfos
)
const
{
int
result
=
100
;
foreach
(
const
WeatherData
::
ForecastInfo
*
forecast
,
forecastInfos
)
{
...
...
dataengines/weather/ions/wetter.com/ion_wettercom.h
View file @
971134a4
...
...
@@ -87,8 +87,8 @@ public:
QVector
<
WeatherData
::
ForecastInfo
*>
dayForecasts
;
QVector
<
WeatherData
::
ForecastInfo
*>
nightForecasts
;
private:
int
getMaxTemp
(
QVector
<
WeatherData
::
ForecastInfo
*>
forecastInfos
)
const
;
int
getMinTemp
(
QVector
<
WeatherData
::
ForecastInfo
*>
forecastInfos
)
const
;
int
getMaxTemp
(
const
QVector
<
WeatherData
::
ForecastInfo
*>
&
forecastInfos
)
const
;
int
getMinTemp
(
const
QVector
<
WeatherData
::
ForecastInfo
*>
&
forecastInfos
)
const
;
};
QVector
<
WeatherData
::
ForecastPeriod
*>
forecasts
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment