Commit 5936f5a4 authored by Murray Cumming's avatar Murray Cumming
Browse files

C++11: DocumentTableInfo: Use "= delete" instead of private declarations.

To prevent copying.
parent edefc20c
......@@ -583,6 +583,9 @@ private:
m_info = std::make_shared<TableInfo>(); //Avoid a null std::shared_ptr.
}
DocumentTableInfo(const DocumentTableInfo& src) = delete;
DocumentTableInfo& operator=(const DocumentTableInfo& src) = delete;
std::shared_ptr<TableInfo> m_info;
type_vec_fields m_fields;
......@@ -607,11 +610,6 @@ private:
FoundSet m_foundset_current;
float m_overviewx, m_overviewy;
private:
//Prevent copying:
DocumentTableInfo(const DocumentTableInfo& src);
DocumentTableInfo& operator=(const DocumentTableInfo& src);
};
std::shared_ptr<DocumentTableInfo> get_table_info_with_add(const Glib::ustring& table_name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment