[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9b0f657 1/7: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9b0f657 1/7: Improve documentation |
Date: |
Mon, 4 Mar 2019 12:06:40 -0500 (EST) |
branch: master
commit 9b0f657ef1a7963017ffebbd377a5fc93794b955
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve documentation
Added a comment to explain why commit 5249af038f of 20190128T1713Z
added a DBInit() call not only to
Database::Database()
but also to
Database::Database(std::string const&)
as well.
---
dbdict.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dbdict.cpp b/dbdict.cpp
index dbcac98..7b60cb6 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -91,6 +91,12 @@ DBDictionary::DBDictionary()
InitDB();
}
+/// Construct from a '.database' file.
+///
+/// Call InitDB() unconditionally before Init(), even though that may
+/// seem unnecessary, in case the file read by Init() lacks any member
+/// entity (because it's an older version or has been edited, e.g.).
+
DBDictionary::DBDictionary(std::string const& filename)
{
ascribe_members();
- [lmi-commits] [lmi] master updated (c79894b -> f241d25), Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b2b7b4 2/7: Withdraw an unnecessary friendship, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b0f657 1/7: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master ab481ed 4/7: Consolidate and renumber octal options, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 6ab9a90 5/7: Sort short options alphabetically, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 5477797 3/7: Add '--prospicience' command-line argument for CLI binary, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 5de4ac2 6/7: Add an inchoate '--test_db' option, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master f241d25 7/7: Make CLI and GUI getopt code more similar, Greg Chicares, 2019/03/04