decklink: Fix compiler warning about ignored const

Fix a warning from gcc about one of the const keywords being ignored.
This happens because the returned type is not a reference contrary to
the methods above.
This commit is contained in:
fryshorts 2017-05-10 21:55:02 +02:00
parent 2bf9d54899
commit 311cd6fb79
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ const std::string& DeckLinkDevice::GetName(void) const
return name;
}
const int32_t DeckLinkDevice::GetMaxChannel(void) const
int32_t DeckLinkDevice::GetMaxChannel(void) const
{
return maxChannel;
}

View File

@ -31,7 +31,7 @@ public:
const std::string& GetHash(void) const;
const std::vector<DeckLinkDeviceMode *>& GetModes(void) const;
const std::string& GetName(void) const;
const int32_t GetMaxChannel(void) const;
int32_t GetMaxChannel(void) const;
bool GetInput(IDeckLinkInput **input);