mx icon indicating copy to clipboard operation
mx copied to clipboard

Use RAII for the DocumentManager

Open webern opened this issue 5 years ago • 0 comments

The DocumentManager is a weird concept. Explain why it exists and how to use it early in the Readme and in the code itself.

For extra credit, return an RAII object instead of a document ID so that leaks won't ever happen.

e.g. std::unique_ptr<mx::api::Document> createFromFile( "/some/file.xml" ).

webern avatar May 12 '20 17:05 webern