8000 Build cleanup by WickedSmoke · Pull Request #1503 · solvespace/solvespace · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extlib/libdxfrw
1 change: 1 addition & 0 deletions src/clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ void GraphicsWindow::PasteClipboard(Vector trans, double theta, double scale) {
}
break;
}
// Fall through...
case Constraint::Type::HORIZONTAL:
case Constraint::Type::VERTICAL:
// When rotating 90 or 270 degrees, swap the vertical / horizontal constraints
Expand Down
2 changes: 0 additions & 2 deletions src/dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#ifndef SOLVESPACE_DSC_H
#define SOLVESPACE_DSC_H

#include "solvespace.h"

#include <type_traits>
#include <vector>

Expand Down
8 changes: 7 additions & 1 deletion src/solvespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,15 @@ enum class SolveResult : uint32_t {


// Utility functions that are provided in the platform-independent code.
class utf8_iterator : std::iterator<std::forward_iterator_tag, char32_t> {
class utf8_iterator {
const char *p, *n;
public:
using iterator_category = std::forward_iterator_tag;
using value_type = char32_t;
using difference_type = std::ptrdiff_t;
using pointer = char32_t*;
using reference = char32_t&;

utf8_iterator(const char *p) : p(p), n(NULL) {}
bool operator==(const utf8_iterator &i) const { return p==i.p; }
bool operator!=(const utf8_iterator &i) const { return p!=i.p; }
Expand Down
0