From: "Lubomir I. Ivanov" <[email protected]>

display.h: dc_number is unsigned int, thus a couple of warnings
may pop-out.

Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 qt-ui/profile/diveplotdatamodel.cpp | 2 +-
 qt-ui/profile/diveplotdatamodel.h   | 4 ++--
 qt-ui/profile/profilewidget2.cpp    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/qt-ui/profile/diveplotdatamodel.cpp 
b/qt-ui/profile/diveplotdatamodel.cpp
index 755dd92..2a183a6 100644
--- a/qt-ui/profile/diveplotdatamodel.cpp
+++ b/qt-ui/profile/diveplotdatamodel.cpp
@@ -153,7 +153,7 @@ int DivePlotDataModel::id() const
        return diveId;
 }
 
-int DivePlotDataModel::dcShown() const
+unsigned int DivePlotDataModel::dcShown() const
 {
        return dcNr;
 }
diff --git a/qt-ui/profile/diveplotdatamodel.h 
b/qt-ui/profile/diveplotdatamodel.h
index 272c0d1..3580525 100644
--- a/qt-ui/profile/diveplotdatamodel.h
+++ b/qt-ui/profile/diveplotdatamodel.h
@@ -55,7 +55,7 @@ public:
        void setDive(struct dive *d, const plot_info &pInfo);
        const plot_info &data() const;
        int id() const;
-       int dcShown() const;
+       unsigned int dcShown() const;
        double pheMax();
        double pn2Max();
        double po2Max();
@@ -65,7 +65,7 @@ public:
 private:
        plot_info pInfo;
        int diveId;
-       int dcNr;
+       unsigned int dcNr;
 };
 
 #endif // DIVEPLOTDATAMODEL_H
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 90ff5ee..4a5bae3 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -767,7 +767,7 @@ void ProfileWidget2::changeGas()
        QPointF scenePos = mapToScene(mapFromGlobal(action->data().toPoint()));
        QString gas = action->text();
        // backup the things on the dataModel, since we will clear that out.
-       int diveComputer = dataModel->dcShown();
+       unsigned int diveComputer = dataModel->dcShown();
        int diveId = dataModel->id();
        int o2, he;
        int seconds = timeAxis->valueAt(scenePos);
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to