Line data Source code
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 1 : XREAppData::operator=(const StaticXREAppData& aOther)
14 : {
15 1 : vendor = aOther.vendor;
16 1 : name = aOther.name;
17 1 : remotingName = aOther.remotingName;
18 1 : version = aOther.version;
19 1 : buildID = aOther.buildID;
20 1 : ID = aOther.ID;
21 1 : copyright = aOther.copyright;
22 1 : flags = aOther.flags;
23 1 : minVersion = aOther.minVersion;
24 1 : maxVersion = aOther.maxVersion;
25 1 : crashReporterURL = aOther.crashReporterURL;
26 1 : profile = aOther.profile;
27 1 : UAName = aOther.UAName;
28 :
29 1 : return *this;
30 : }
31 :
32 : XREAppData&
33 0 : XREAppData::operator=(const XREAppData& aOther)
34 : {
35 0 : directory = aOther.directory;
36 0 : vendor = aOther.vendor;
37 0 : name = aOther.name;
38 0 : remotingName = aOther.remotingName;
39 0 : version = aOther.version;
40 0 : buildID = aOther.buildID;
41 0 : ID = aOther.ID;
42 0 : copyright = aOther.copyright;
43 0 : flags = aOther.flags;
44 0 : xreDirectory = aOther.xreDirectory;
45 0 : minVersion = aOther.minVersion;
46 0 : maxVersion = aOther.maxVersion;
47 0 : crashReporterURL = aOther.crashReporterURL;
48 0 : profile = aOther.profile;
49 0 : UAName = aOther.UAName;
50 : #if defined(XP_WIN) && defined(MOZ_SANDBOX)
51 : sandboxBrokerServices = aOther.sandboxBrokerServices;
52 : sandboxPermissionsService = aOther.sandboxPermissionsService;
53 : #endif
54 0 : return *this;
55 : }
56 :
57 9 : } // namespace mozilla
|