Add comments

test

Revert "test"

This reverts commit fb831f268b7a2f0ccd20595aff64902ab4f4b4ee.
This commit is contained in:
EmosewaMC 2022-10-16 20:56:51 -07:00
parent 98e099cdbc
commit 15dde782cf
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,6 @@ uint32_t BrickByBrickFix::TruncateBrokenBrickByBrickXml() {
} }
if (!document->Parse(completeUncompressedModel.c_str(), completeUncompressedModel.size()) == tinyxml2::XML_SUCCESS) { if (!document->Parse(completeUncompressedModel.c_str(), completeUncompressedModel.size()) == tinyxml2::XML_SUCCESS) {
// Change this to just look for </LXFML> near the end of the function. Should rely on human interference for this...
if (completeUncompressedModel.find( if (completeUncompressedModel.find(
"</LXFML>", "</LXFML>",
completeUncompressedModel.length() >= 15 ? completeUncompressedModel.length() - 15 : 0) == std::string::npos completeUncompressedModel.length() >= 15 ? completeUncompressedModel.length() - 15 : 0) == std::string::npos

View File

@ -91,5 +91,7 @@ bool Database::GetAutoCommit() {
} }
void Database::SetAutoCommit(bool value) { void Database::SetAutoCommit(bool value) {
// TODO This should not just access a pointer. A future PR should update this
// to check for null and throw an error if the connection is not valid.
Database::con->setAutoCommit(value); Database::con->setAutoCommit(value);
} }