View | Details | Raw Unified | Return to bug 262139 | Differences between
and this patch

Collapse All | Expand All

(-)b/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp (-1 / +18 lines)
Lines 8-10 Link Here
8
 #include <string.h>
8
 #include <string.h>
9
 
9
 
10
 #ifdef DB_HEADER
10
 #ifdef DB_HEADER
11
- 
11
@@ -305,7 +306,7 @@ std::unique_ptr<DbEnv> CreateDbEnv(const char *path)
12
                             DB_RECOVER |
13
                             DB_CREATE;
14
 
15
-    std::unique_ptr<DbEnv> env(new DbEnv(0));
16
+    std::unique_ptr<DbEnv> env(new DbEnv((u_int32_t)0));
17
     env->open(path, flags, 0600);
18
 
19
     // This prevents the log from growing indefinitely
20
@@ -324,7 +325,7 @@ void DestroyDbEnv(std::unique_ptr<DbEnv>& env)
21
     env->close(0);
22
 
23
     // Clean up temporary environment files (unless they're still in use):
24
-    DbEnv env2(0);
25
+    DbEnv env2((u_int32_t)0);
26
     env2.remove(dbpath.c_str(), 0);
27
 
28
     env.reset();

Return to bug 262139