mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
refs #937 Resolved clazy warnings: pass-by-value/reference.
This commit is contained in:
@@ -20,16 +20,16 @@ namespace BlackMisc
|
||||
namespace Weather
|
||||
{
|
||||
|
||||
CCloudLayer::CCloudLayer(BlackMisc::Aviation::CAltitude base,
|
||||
BlackMisc::Aviation::CAltitude top,
|
||||
CCloudLayer::CCloudLayer(const BlackMisc::Aviation::CAltitude &base,
|
||||
const BlackMisc::Aviation::CAltitude &top,
|
||||
Coverage coverage) :
|
||||
m_base(base), m_top(top)
|
||||
{
|
||||
setCoverage(coverage);
|
||||
}
|
||||
|
||||
CCloudLayer::CCloudLayer(BlackMisc::Aviation::CAltitude base,
|
||||
BlackMisc::Aviation::CAltitude top,
|
||||
CCloudLayer::CCloudLayer(const BlackMisc::Aviation::CAltitude &base,
|
||||
const BlackMisc::Aviation::CAltitude &top,
|
||||
double precipitationRate,
|
||||
Precipitation precipitation,
|
||||
Clouds clouds,
|
||||
|
||||
@@ -78,13 +78,13 @@ namespace BlackMisc
|
||||
CCloudLayer() = default;
|
||||
|
||||
//! Constructor
|
||||
CCloudLayer(BlackMisc::Aviation::CAltitude base,
|
||||
BlackMisc::Aviation::CAltitude top,
|
||||
CCloudLayer(const BlackMisc::Aviation::CAltitude &base,
|
||||
const BlackMisc::Aviation::CAltitude &top,
|
||||
Coverage coverage);
|
||||
|
||||
//! Constructor
|
||||
CCloudLayer(BlackMisc::Aviation::CAltitude base,
|
||||
BlackMisc::Aviation::CAltitude top,
|
||||
CCloudLayer(const BlackMisc::Aviation::CAltitude &base,
|
||||
const BlackMisc::Aviation::CAltitude &top,
|
||||
double precipitationRate,
|
||||
Precipitation precipitation,
|
||||
Clouds clouds,
|
||||
@@ -97,7 +97,7 @@ namespace BlackMisc
|
||||
BlackMisc::Aviation::CAltitude getBase() const { return m_base; }
|
||||
|
||||
//! Set layer top
|
||||
void setTop(BlackMisc::Aviation::CAltitude top) { m_top = top; }
|
||||
void setTop(const BlackMisc::Aviation::CAltitude &top) { m_top = top; }
|
||||
|
||||
//! Get layer top
|
||||
BlackMisc::Aviation::CAltitude getTop() const { return m_top; }
|
||||
|
||||
Reference in New Issue
Block a user