mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix compiler warnings (#942)
This commit is contained in:
parent
29ee5e2c41
commit
be329fb7bb
@ -89,13 +89,6 @@ public:
|
|||||||
///
|
///
|
||||||
int discoverServices(const QString &searchTarget="ssdp:all", const QString &key="LOCATION");
|
int discoverServices(const QString &searchTarget="ssdp:all", const QString &key="LOCATION");
|
||||||
|
|
||||||
///
|
|
||||||
/// @brief Get services discovered during discoverServices()
|
|
||||||
///
|
|
||||||
/// @return Map of discovered services
|
|
||||||
///
|
|
||||||
const QMap<QString, SSDPService> getServicesDiscovered () { return _services; }
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// @brief Get services discovered during discoverServices().
|
/// @brief Get services discovered during discoverServices().
|
||||||
///
|
///
|
||||||
|
@ -271,11 +271,11 @@ int SSDPDiscover::discoverServices(const QString& searchTarget, const QString& k
|
|||||||
|
|
||||||
if ( _skipDupKeys )
|
if ( _skipDupKeys )
|
||||||
{
|
{
|
||||||
_services.insert(mapKey, service);
|
_services.replace(mapKey, service);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_services.insertMulti(mapKey, service);
|
_services.insert(mapKey, service);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,6 @@ void ImageResampler::processImage(const uint8_t * data, int width, int height, i
|
|||||||
int outputWidth = (width - _cropLeft - cropRight - (_horizontalDecimation >> 1) + _horizontalDecimation - 1) / _horizontalDecimation;
|
int outputWidth = (width - _cropLeft - cropRight - (_horizontalDecimation >> 1) + _horizontalDecimation - 1) / _horizontalDecimation;
|
||||||
int outputHeight = (height - _cropTop - cropBottom - (_verticalDecimation >> 1) + _verticalDecimation - 1) / _verticalDecimation;
|
int outputHeight = (height - _cropTop - cropBottom - (_verticalDecimation >> 1) + _verticalDecimation - 1) / _verticalDecimation;
|
||||||
|
|
||||||
if (outputImage.width() != outputWidth || outputImage.height() != outputHeight)
|
|
||||||
outputImage.resize(outputWidth, outputHeight);
|
outputImage.resize(outputWidth, outputHeight);
|
||||||
|
|
||||||
for (int yDest = 0, ySource = _cropTop + (_verticalDecimation >> 1); yDest < outputHeight; ySource += _verticalDecimation, ++yDest)
|
for (int yDest = 0, ySource = _cropTop + (_verticalDecimation >> 1); yDest < outputHeight; ySource += _verticalDecimation, ++yDest)
|
||||||
|
Loading…
Reference in New Issue
Block a user