[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/376: Don't use member initialisers
From: |
Ludovic Courtès |
Subject: |
26/376: Don't use member initialisers |
Date: |
Wed, 28 Jan 2015 22:03:48 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 9d0709e8c47082cec35d6412053eacfadae23bcd
Author: Eelco Dolstra <address@hidden>
Date: Thu Jun 12 17:30:37 2014 +0200
Don't use member initialisers
They're a little bit too recent (only supported since GCC 4.7).
http://hydra.nixos.org/build/11851475
---
src/libutil/serialise.hh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 1b3fb74..6a6f028 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -72,11 +72,11 @@ struct BufferedSource : Source
struct FdSink : BufferedSink
{
int fd;
- bool warn = false;
- size_t written = 0;
+ bool warn;
+ size_t written;
- FdSink() : fd(-1) { }
- FdSink(int fd) : fd(fd) { }
+ FdSink() : fd(-1), warn(false), written(0) { }
+ FdSink(int fd) : fd(fd), warn(false), written(0) { }
~FdSink();
void write(const unsigned char * data, size_t len);
- 07/376: Add constant ‘nixPath’, (continued)
- 07/376: Add constant ‘nixPath’, Ludovic Courtès, 2015/01/28
- 17/376: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, Ludovic Courtès, 2015/01/28
- 14/376: Use std::unordered_set, Ludovic Courtès, 2015/01/28
- 15/376: Sort nixPath attributes, Ludovic Courtès, 2015/01/28
- 16/376: Fix test, Ludovic Courtès, 2015/01/28
- 21/376: Add autoloads, make code more concise & idiomatic, Ludovic Courtès, 2015/01/28
- 18/376: Print a warning when loading a large path into memory, Ludovic Courtès, 2015/01/28
- 19/376: Report daemon OOM better, Ludovic Courtès, 2015/01/28
- 22/376: Share code between scopedImport and import, Ludovic Courtès, 2015/01/28
- 28/376: Only add the importNative primop if the allow-arbitrary-code-during-evaluation option is true (default false), Ludovic Courtès, 2015/01/28
- 26/376: Don't use member initialisers,
Ludovic Courtès <=
- 27/376: Add importNative primop, Ludovic Courtès, 2015/01/28
- 29/376: Merge branch 'shlevy-import-native', Ludovic Courtès, 2015/01/28
- 20/376: == operator: Ignore string context, Ludovic Courtès, 2015/01/28
- 30/376: allow-arbitrary-code-during-evaluation -> allow-unsafe-native-code-during-evaluation, Ludovic Courtès, 2015/01/28
- 32/376: Style fix, Ludovic Courtès, 2015/01/28
- 24/376: Drop ImportError and FindError, Ludovic Courtès, 2015/01/28
- 31/376: Add `--json` argument to `nix-instantiate`, Ludovic Courtès, 2015/01/28
- 33/376: Manual: html -> xhtml, Ludovic Courtès, 2015/01/28
- 25/376: Fix bogus warnings about dumping large paths, Ludovic Courtès, 2015/01/28
- 36/376: Fix compilation error on some versions of GCC, Ludovic Courtès, 2015/01/28