Consistently format type qualifiers like const on the right (#1347)

This commit is contained in:
Sylvie
2024-03-10 12:21:52 -04:00
committed by GitHub
parent d982d47c56
commit 820f6b5b3c
22 changed files with 103 additions and 66 deletions

View File

@@ -789,7 +789,7 @@ int main(int argc, char *argv[]) {
}());
if (options.palSpecType == Options::EXPLICIT) {
fputs("\t[\n", stderr);
for (const auto &pal : options.palSpec) {
for (auto const &pal : options.palSpec) {
fputs("\t\t", stderr);
for (auto &color : pal) {
if (color) {

View File

@@ -14,8 +14,8 @@
#include <stdio.h>
#include <streambuf>
#include <string.h>
#include <string_view>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <unordered_map>

View File

@@ -21,7 +21,7 @@
#include "gfx/main.hpp"
static DefaultInitVec<uint8_t> readInto(const std::string &path) {
static DefaultInitVec<uint8_t> readInto(std::string const &path) {
File file;
if (!file.open(path, std::ios::in | std::ios::binary)) {
fatal("Failed to open \"%s\": %s", file.c_str(path), strerror(errno));