@@ -69,7 +69,7 @@ void SnippetsDB::Open()
69
69
// ///////////////////////////////////////////////////////////////////////////
70
70
//
71
71
72
- bool SnippetsDB::ImportLibrary (LPCWSTR db, int orgLibID)
72
+ void SnippetsDB::ImportLibrary (LPCWSTR db, int orgLibID)
73
73
{
74
74
// Start with attaching the database
75
75
Attach (db, L" Import" );
@@ -91,13 +91,12 @@ bool SnippetsDB::ImportLibrary(LPCWSTR db, int orgLibID)
91
91
stmt.Finalize ();
92
92
93
93
Detach (L" Import" );
94
- return true ;
95
94
}
96
95
97
96
// ///////////////////////////////////////////////////////////////////////////
98
97
//
99
98
100
- bool SnippetsDB::ImportSnippets (int orgLibID, int newLibID)
99
+ void SnippetsDB::ImportSnippets (int orgLibID, int newLibID)
101
100
{
102
101
// Get all the snippets from the attached database
103
102
SqliteStatement stmt (g_db, " SELECT * FROM Import.Snippets WHERE LibraryID = @libid" );
@@ -113,13 +112,12 @@ bool SnippetsDB::ImportSnippets(int orgLibID, int newLibID)
113
112
snip.SaveToDB (false );
114
113
}
115
114
stmt.Finalize ();
116
- return true ;
117
115
}
118
116
119
117
// ///////////////////////////////////////////////////////////////////////////
120
118
//
121
119
122
- bool SnippetsDB::ImportLanguages (int orgLibID, int newLibID)
120
+ void SnippetsDB::ImportLanguages (int orgLibID, int newLibID)
123
121
{
124
122
// Get all the languages for this library from the attached database
125
123
SqliteStatement stmtSelect (g_db, " SELECT Lang FROM Import.LibraryLang WHERE LibraryID = @libid" );
@@ -139,7 +137,6 @@ bool SnippetsDB::ImportLanguages(int orgLibID, int newLibID)
139
137
}
140
138
stmtSelect.Finalize ();
141
139
stmtInsert.Finalize ();
142
- return true ;
143
140
}
144
141
145
142
// ///////////////////////////////////////////////////////////////////////////
0 commit comments