Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Workspace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
68
Merge Requests
68
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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