Seth Hillbrand
d83cff63f6
fix memory leak
When staging a commit for an object that has already been modified,
there is a Clone() made for the hypothetical entry. We need to free it
if we are not storing a new entry.
8 years ago
Tomasz Włostowski
9932ff32ae
refactoring: wrapped boost::optional in OPT<> class for the purpose of easier transition to C++17 in the future
8 years ago
Maciej Suminski
fe89fdfb24
Removed incorrectly defined assert
9 years ago
Maciej Suminski
984ac70106
Added COMMIT::GetStatus() and minor refactor
Moved duplicated code to a new function and added
an assert to warn against possible memory leak.
9 years ago
Tomasz Włostowski
5c0edbabab
Fixes for the connectivity & board cleanup algorithms
9 years ago
Maciej Suminski
74b5858665
Fixed a crash when removing zones using the Global Deletion dialog
Fixes: lp:1635266
* https://bugs.launchpad.net/kicad/+bug/1635266
9 years ago
Maciej Suminski
6481ff75c9
Changed one of COMMIT::Stage() methods to COMMIT::Modified()
9 years ago
Maciej Suminski
65b1225231
Added CHT_DONE flag to COMMIT::Stage to skip add/remove step
9 years ago
Maciej Suminski
940765f4b3
COMMIT class: removed m_committed flag, added clear() and Empty() methods.
10 years ago
Maciej Suminski
b8350f037b
COMMIT: Added an interface to store items that already have a copy created.
10 years ago
Maciej Suminski
0223425d30
COMMIT: changed BOOST_FOREACH to for.
10 years ago
Maciej Suminski
dac7c5aa1f
Store parent object when creating a COMMIT.
10 years ago
Tomasz Wlostowski
9588a7974c
Added classes COMMIT & BOARD_COMMIT.
10 years ago