MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
47 stars 12 forks source link

Remove redundant unique_ptrs in createCompressedIndex #61

Closed cprodescu closed 10 years ago

cprodescu commented 10 years ago

Code in the form:

unique_ptr<Foo> foo;

can be replaced with

Foo foo;

unless there may be multiple constructors for Foo and polymorphic behavior is desired. MeaningDictionary and IndexBuilder should be simplified since they do not require polymorphism.