Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/xpcom/glue/XREAppData.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#include "mozilla/XREAppData.h"
8
#include "nsCRTGlue.h"
9
10
namespace mozilla {
11
12
XREAppData&
13
XREAppData::operator=(const StaticXREAppData& aOther)
14
3
{
15
3
  vendor = aOther.vendor;
16
3
  name = aOther.name;
17
3
  remotingName = aOther.remotingName;
18
3
  version = aOther.version;
19
3
  buildID = aOther.buildID;
20
3
  ID = aOther.ID;
21
3
  copyright = aOther.copyright;
22
3
  flags = aOther.flags;
23
3
  minVersion = aOther.minVersion;
24
3
  maxVersion = aOther.maxVersion;
25
3
  crashReporterURL = aOther.crashReporterURL;
26
3
  profile = aOther.profile;
27
3
  UAName = aOther.UAName;
28
3
  sourceURL = aOther.sourceURL;
29
3
30
3
  return *this;
31
3
}
32
33
XREAppData&
34
XREAppData::operator=(const XREAppData& aOther)
35
0
{
36
0
  directory = aOther.directory;
37
0
  vendor = aOther.vendor;
38
0
  name = aOther.name;
39
0
  remotingName = aOther.remotingName;
40
0
  version = aOther.version;
41
0
  buildID = aOther.buildID;
42
0
  ID = aOther.ID;
43
0
  copyright = aOther.copyright;
44
0
  flags = aOther.flags;
45
0
  xreDirectory = aOther.xreDirectory;
46
0
  minVersion = aOther.minVersion;
47
0
  maxVersion = aOther.maxVersion;
48
0
  crashReporterURL = aOther.crashReporterURL;
49
0
  profile = aOther.profile;
50
0
  UAName = aOther.UAName;
51
0
  sourceURL = aOther.sourceURL;
52
#if defined(XP_WIN) && defined(MOZ_SANDBOX)
53
  sandboxBrokerServices = aOther.sandboxBrokerServices;
54
  sandboxPermissionsService = aOther.sandboxPermissionsService;
55
#endif
56
  return *this;
57
0
}
58
59
} // namespace mozilla