fix: don't indent inner namespaces (#6235)
This commit is contained in:
@@ -37,7 +37,7 @@ struct ChannelPointReward;
|
||||
struct TwitchEmoteOccurrence;
|
||||
|
||||
namespace linkparser {
|
||||
struct Parsed;
|
||||
struct Parsed;
|
||||
} // namespace linkparser
|
||||
|
||||
struct SystemMessageTag {
|
||||
|
||||
@@ -26,21 +26,21 @@ using namespace literals;
|
||||
|
||||
namespace {
|
||||
|
||||
// Computes the bounding box for the given vector of images
|
||||
QSizeF getBoundingBoxSize(const std::vector<ImagePtr> &images)
|
||||
// Computes the bounding box for the given vector of images
|
||||
QSizeF getBoundingBoxSize(const std::vector<ImagePtr> &images)
|
||||
{
|
||||
qreal width = 0;
|
||||
qreal height = 0;
|
||||
for (const auto &img : images)
|
||||
{
|
||||
qreal width = 0;
|
||||
qreal height = 0;
|
||||
for (const auto &img : images)
|
||||
{
|
||||
QSizeF s = img->size();
|
||||
width = std::max(width, s.width());
|
||||
height = std::max(height, s.height());
|
||||
}
|
||||
|
||||
return {width, height};
|
||||
QSizeF s = img->size();
|
||||
width = std::max(width, s.width());
|
||||
height = std::max(height, s.height());
|
||||
}
|
||||
|
||||
return {width, height};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
MessageElement::MessageElement(MessageElementFlags flags)
|
||||
|
||||
@@ -23,15 +23,15 @@ namespace chatterino {
|
||||
|
||||
namespace {
|
||||
|
||||
QColor blendColors(const QColor &base, const QColor &apply)
|
||||
{
|
||||
const qreal &alpha = apply.alphaF();
|
||||
QColor result;
|
||||
result.setRgbF(base.redF() * (1 - alpha) + apply.redF() * alpha,
|
||||
base.greenF() * (1 - alpha) + apply.greenF() * alpha,
|
||||
base.blueF() * (1 - alpha) + apply.blueF() * alpha);
|
||||
return result;
|
||||
}
|
||||
QColor blendColors(const QColor &base, const QColor &apply)
|
||||
{
|
||||
const qreal &alpha = apply.alphaF();
|
||||
QColor result;
|
||||
result.setRgbF(base.redF() * (1 - alpha) + apply.redF() * alpha,
|
||||
base.greenF() * (1 - alpha) + apply.greenF() * alpha,
|
||||
base.blueF() * (1 - alpha) + apply.blueF() * alpha);
|
||||
return result;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
MessageLayout::MessageLayout(MessagePtr message)
|
||||
|
||||
Reference in New Issue
Block a user