Skip to content

Commit 46219ff

Browse files
committed
Add missing includes
1 parent 5e6a085 commit 46219ff

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

opencog/atoms/base/ClassServer.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Type ClassServer::declType(const Type parent, const std::string& name)
9898
recursiveMap.resize(nTypes);
9999
_code2NameMap.resize(nTypes);
100100
_mod.resize(nTypes);
101-
if (_atomFactory.size() < nTypes) _atomFactory.resize(nTypes);
101+
_atomFactory.resize(nTypes);
102102

103103
for (auto& bv: inheritanceMap) bv.resize(nTypes, false);
104104
for (auto& bv: recursiveMap) bv.resize(nTypes, false);
@@ -146,7 +146,6 @@ boost::signals2::signal<void (Type)>& ClassServer::addTypeSignal()
146146
void ClassServer::addFactory(Type t, AtomFactory* fact)
147147
{
148148
std::unique_lock<std::mutex> l(type_mutex);
149-
if (_atomFactory.size() < (size_t) t+1) _atomFactory.resize(t+1);
150149
_atomFactory[t] = fact;
151150
}
152151

tests/atomspace/AtomTableUTest.cxxtest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public:
6767
//logger().setLevel(Logger::DEBUG);
6868
//logger().setPrintToStdoutFlag(true);
6969

70+
#include "../query/test-types.cc"
7071
atomSpace = new AtomSpace();
7172
table = (AtomTable*) & (atomSpace->get_atomtable());
7273
}

tests/scm/BasicSCMUTest.cxxtest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class BasicSCMUTest : public CxxTest::TestSuite
5353
{
5454
logger().set_level(Logger::DEBUG);
5555
logger().set_print_to_stdout_flag(true);
56+
#include "../query/test-types.cc"
5657
}
5758

5859
~BasicSCMUTest()

tests/scm/SCMUtilsUTest.cxxtest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class SCMUtilsUTest : public CxxTest::TestSuite
4343
{
4444
logger().set_level(Logger::DEBUG);
4545
logger().set_print_to_stdout_flag(true);
46+
#include "../query/test-types.cc"
4647
}
4748

4849
~SCMUtilsUTest()

0 commit comments

Comments
 (0)