Skip to content

Commit 1a2ae11

Browse files
committed
Various small code style things
[ci skip]
1 parent 14dcafc commit 1a2ae11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/editor/overlay_widget.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ EditorOverlayWidget::put_tiles(const Vector& target_tile, TileSelection* tiles)
210210

211211
if (m_autotile_mode)
212212
{
213-
AutotileSet* autotileset = get_current_autotileset();
213+
auto autotileset = get_current_autotileset();
214214
if (autotileset)
215215
{
216216
if (tile == 0)
@@ -231,7 +231,11 @@ namespace {
231231
// segment from pos1 to pos2 (similarly to a line drawing algorithm)
232232
std::vector<Vector> rasterize_line_segment(Vector pos1, Vector pos2)
233233
{
234-
if (pos1 == pos2) return std::vector<Vector> {pos1};
234+
if (pos1 == pos2)
235+
{
236+
return std::vector<Vector>{ pos1 };
237+
}
238+
235239
// An integer position (x, y) contains all floating point vectors in
236240
// [x, x+1) x [y, y+1)
237241
std::vector<Vector> positions;

0 commit comments

Comments
 (0)