Switch to unified view

a/src/rcldb/expansiondbs.cpp b/src/rcldb/expansiondbs.cpp
...
...
16
 */
16
 */
17
17
18
18
19
#include "autoconfig.h"
19
#include "autoconfig.h"
20
20
21
#include MEMORY_INCLUDE
21
#include <memory>
22
22
23
#include "log.h"
23
#include "log.h"
24
#include "utf8iter.h"
24
#include "utf8iter.h"
25
#include "smallut.h"
25
#include "smallut.h"
26
#include "chrono.h"
26
#include "chrono.h"
...
...
55
55
56
    // Stem dbs
56
    // Stem dbs
57
    vector<XapWritableComputableSynFamMember> stemdbs;
57
    vector<XapWritableComputableSynFamMember> stemdbs;
58
    // Note: tried to make this to work with stack-allocated objects, couldn't.
58
    // Note: tried to make this to work with stack-allocated objects, couldn't.
59
    // Looks like a bug in copy constructors somewhere, can't guess where
59
    // Looks like a bug in copy constructors somewhere, can't guess where
60
    vector<STD_SHARED_PTR<SynTermTransStem> > stemmers;
60
    vector<std::shared_ptr<SynTermTransStem> > stemmers;
61
    for (unsigned int i = 0; i < langs.size(); i++) {
61
    for (unsigned int i = 0; i < langs.size(); i++) {
62
  stemmers.push_back(STD_SHARED_PTR<SynTermTransStem>
62
  stemmers.push_back(std::shared_ptr<SynTermTransStem>
63
               (new SynTermTransStem(langs[i])));
63
               (new SynTermTransStem(langs[i])));
64
    stemdbs.push_back(
64
    stemdbs.push_back(
65
        XapWritableComputableSynFamMember(wdb, synFamStem, langs[i], 
65
        XapWritableComputableSynFamMember(wdb, synFamStem, langs[i], 
66
                          stemmers.back().get()));
66
                          stemmers.back().get()));
67
    stemdbs.back().recreate();
67
    stemdbs.back().recreate();