aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-11-25 20:08:30 +1000
committerfuzzard <fuzzard@kodi.tv>2023-11-25 20:15:51 +1000
commitf89e84e7b2007c6d0b946b3bb0ae9bf3473affdd (patch)
tree5dc5fa1745d9b62edca785fedaa18e24affd2c35
parent940fe21f4ff0a18e4c5f97956ad5bd7d523a80d6 (diff)
[swig] Fix misleading indentation warnings
Example of warning fixed by specifically encasing the else /build/build/swig/AddonModuleXbmcdrm.i.cpp:183:7: warning: misleading indentation; statement is not part of the previous 'else' [-Wmisleading-indentation] if (pymimeType) PyXBMCGetUnicodeString(mimeType,pymimeType,false,"mimeType","GetKeyRequest"); ^ /build/build/swig/AddonModuleXbmcdrm.i.cpp:181:5: note: previous statement is here else ^
-rw-r--r--xbmc/interfaces/python/typemaps/python.buffer.intm4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/interfaces/python/typemaps/python.buffer.intm b/xbmc/interfaces/python/typemaps/python.buffer.intm
index f074b2bad2..e47a460688 100644
--- a/xbmc/interfaces/python/typemaps/python.buffer.intm
+++ b/xbmc/interfaces/python/typemaps/python.buffer.intm
@@ -33,4 +33,6 @@
${api}.flip(); // prepare the buffer for reading from
}
else
- throw XBMCAddon::WrongTypeException("argument \"%s\" for \"%s\" must be a string, bytes or a bytearray", "${api}", "${method.@name}"); \ No newline at end of file
+ {
+ throw XBMCAddon::WrongTypeException("argument \"%s\" for \"%s\" must be a string, bytes or a bytearray", "${api}", "${method.@name}");
+ } \ No newline at end of file