Bunch of raw pointers replaced with smart pointers of references.
This commit is contained in:
parent
5a199c9138
commit
ea035f58c8
20 changed files with 67 additions and 79 deletions
|
|
@ -126,10 +126,10 @@ SqlSyntaxHighlighter::~SqlSyntaxHighlighter()
|
|||
{
|
||||
}
|
||||
|
||||
void SqlSyntaxHighlighter::setTypes(const PgTypeContainer *types)
|
||||
void SqlSyntaxHighlighter::setTypes(const PgTypeContainer& types)
|
||||
{
|
||||
m_typeNames.clear();
|
||||
for (auto &e : *types) {
|
||||
for (auto &e : types) {
|
||||
m_typeNames.insert(e.typname);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue