From d0e3010d187e074f378f85b9cfcf68f944e1ab45 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 30 Oct 2021 14:30:16 +1100 Subject: Minor changes to avoid warnings from linters. --- src/XPM.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/XPM.cxx') diff --git a/src/XPM.cxx b/src/XPM.cxx index 39a283b18..71dbc624e 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -99,7 +99,7 @@ void XPM::Init(const char *textForm) { // Build the lines form out of the text form std::vector linesForm = LinesFormFromTextForm(textForm); if (!linesForm.empty()) { - Init(&linesForm[0]); + Init(linesForm.data()); } } else { // It is really in line form @@ -143,7 +143,7 @@ void XPM::Init(const char *const *linesForm) { colourCodeTable[static_cast(code)] = colour; } - for (int y=0; y> &image : images) { if (height < image.second->GetHeight()) { @@ -309,7 +309,7 @@ int RGBAImageSet::GetHeight() const { } /// Give the largest width of the set. -int RGBAImageSet::GetWidth() const { +int RGBAImageSet::GetWidth() const noexcept { if (width < 0) { for (const std::pair> &image : images) { if (width < image.second->GetWidth()) { -- cgit v1.2.3