Fix gcc warnings.

pull/2000/head
srcejon 2024-02-27 16:28:23 +00:00
rodzic cacb740566
commit bb7ea39d28
2 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -207,8 +207,8 @@ MapGUI::MapGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
m_legend(nullptr),
m_nasaWidget(nullptr),
m_legendWidget(nullptr),
m_descriptionWidget(nullptr),
m_overviewWidget(nullptr)
m_overviewWidget(nullptr),
m_descriptionWidget(nullptr)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
@ -1437,6 +1437,8 @@ void MapGUI::nasaGlobalImageryMetaDataUpdated(const NASAGlobalImagery::MetaData&
void MapGUI::nasaGlobalImageryLegendAvailable(const QString& url, const QByteArray& data)
{
(void) url;
if (m_legendWidget)
{
m_legendWidget->load(data);
@ -1450,6 +1452,8 @@ void MapGUI::nasaGlobalImageryLegendAvailable(const QString& url, const QByteArr
void MapGUI::nasaGlobalImageryHTMLAvailable(const QString& url, const QByteArray& data)
{
(void) url;
if (m_descriptionWidget) {
m_descriptionWidget->setHtml(data);
}
@ -1657,6 +1661,8 @@ bool MapGUI::eventFilter(QObject *obj, QEvent *event)
void MapGUI::orientationChanged(Qt::ScreenOrientation orientation)
{
(void) orientation;
// Need a delay before geometry() reflects new orientation
// https://bugreports.qt.io/browse/QTBUG-109127
QTimer::singleShot(200, [this]() {

Wyświetl plik

@ -358,11 +358,6 @@ private slots:
{
qDebug() << "MapTileServer::downloadFinished: Failed to load image: " << url;
}
else
{
bool cached = reply->attribute(QNetworkRequest::SourceIsFromCacheAttribute).toBool();
//qDebug() << "Downloaded " << url << "as" << image.size() << "cached:" << cached;
}
}
else
{