Global Metrics
path: .metrics.mi.mi_original
old: 6.325652025964629
new: 74.49875162223431
path: .metrics.mi.mi_sei
old: -19.815469470025064
new: 71.23578204028465
path: .metrics.mi.mi_visual_studio
old: 3.699211711090427
new: 43.56652141651129
path: .metrics.loc.blank
old: 63.0
new: 11.0
path: .metrics.loc.lloc
old: 117.0
new: 0.0
path: .metrics.loc.ploc
old: 282.0
new: 24.0
path: .metrics.loc.sloc
old: 550.0
new: 53.0
path: .metrics.loc.cloc
old: 205.0
new: 18.0
path: .metrics.nargs.average
old: 0.9166666666666666
new: null
path: .metrics.nargs.sum
old: 22.0
new: 0.0
path: .metrics.cognitive.average
old: 1.2916666666666667
new: null
path: .metrics.cognitive.sum
old: 31.0
new: 0.0
path: .metrics.cyclomatic.average
old: 1.8484848484848484
new: 1.0
path: .metrics.cyclomatic.sum
old: 61.0
new: 2.0
path: .metrics.nom.total
old: 24.0
new: 0.0
path: .metrics.nom.functions
old: 24.0
new: 0.0
path: .metrics.nexits.average
old: 0.3333333333333333
new: null
path: .metrics.nexits.sum
old: 8.0
new: 0.0
path: .metrics.halstead.difficulty
old: 44.1871921182266
new: 6.362068965517241
path: .metrics.halstead.n2
old: 203.0
new: 29.0
path: .metrics.halstead.N2
old: 598.0
new: 41.0
path: .metrics.halstead.volume
old: 11072.774091673224
new: 446.07383864270474
path: .metrics.halstead.effort
old: 489274.7960704868
new: 2837.952525157897
path: .metrics.halstead.N1
old: 810.0
new: 44.0
path: .metrics.halstead.length
old: 1408.0
new: 85.0
path: .metrics.halstead.bugs
old: 2.0697313361041045
new: 0.06681626000711022
path: .metrics.halstead.time
old: 27181.933115027045
new: 157.6640291754387
path: .metrics.halstead.estimated_program_length
old: 1703.2699090568462
new: 169.4107738716804
path: .metrics.halstead.n1
old: 30.0
new: 9.0
path: .metrics.halstead.purity_ratio
old: 1.2097087422278738
new: 1.9930679279021224
path: .metrics.halstead.level
old: 0.02263099219620959
new: 0.15718157181571815
path: .metrics.halstead.vocabulary
old: 233.0
new: 38.0
Spaces Data
Minimal test - lines (17, 51)
path: .spaces[0].metrics.mi.mi_original
old: 8.908735954337132
new: 81.88500029305912
path: .spaces[0].metrics.mi.mi_visual_studio
old: 5.209787107799492
new: 47.8859650836603
path: .spaces[0].metrics.mi.mi_sei
old: -17.399044207504986
new: 77.89797478918999
path: .spaces[0].metrics.cyclomatic.sum
old: 60.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.875
new: 1.0
path: .spaces[0].metrics.loc.cloc
old: 163.0
new: 9.0
path: .spaces[0].metrics.loc.blank
old: 65.0
new: 8.0
path: .spaces[0].metrics.loc.lloc
old: 117.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 249.0
new: 18.0
path: .spaces[0].metrics.loc.sloc
old: 477.0
new: 35.0
path: .spaces[0].metrics.nargs.average
old: 0.9166666666666666
new: null
path: .spaces[0].metrics.nargs.sum
old: 22.0
new: 0.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1906392981117442
new: 1.8842594710581149
path: .spaces[0].metrics.halstead.time
old: 27207.42085249057
new: 145.9872858668952
path: .spaces[0].metrics.halstead.length
old: 1400.0
new: 80.0
path: .spaces[0].metrics.halstead.volume
old: 10974.88530333572
new: 410.3426413555973
path: .spaces[0].metrics.halstead.level
old: 0.02240990990990991
new: 0.1561561561561561
path: .spaces[0].metrics.halstead.effort
old: 489733.57534483017
new: 2627.771145604114
path: .spaces[0].metrics.halstead.N1
old: 808.0
new: 43.0
path: .spaces[0].metrics.halstead.N2
old: 592.0
new: 37.0
path: .spaces[0].metrics.halstead.difficulty
old: 44.62311557788945
new: 6.403846153846154
path: .spaces[0].metrics.halstead.bugs
old: 2.071024953399899
new: 0.06347515523129883
path: .spaces[0].metrics.halstead.vocabulary
old: 229.0
new: 35.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1666.8950173564417
new: 150.7407576846492
path: .spaces[0].metrics.halstead.n2
old: 199.0
new: 26.0
path: .spaces[0].metrics.halstead.n1
old: 30.0
new: 9.0
path: .spaces[0].metrics.nexits.average
old: 0.3333333333333333
new: null
path: .spaces[0].metrics.nexits.sum
old: 8.0
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 31.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.2916666666666667
new: null
path: .spaces[0].metrics.nom.total
old: 24.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 24.0
new: 0.0
Code
class nsPrintSettingsWin : public nsPrintSettings, public nsIPrintSettingsWin {
virtual ~nsPrintSettingsWin();
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIPRINTSETTINGSWIN
nsPrintSettingsWin();
nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
void InitWithInitializer(const PrintSettingsInitializer& aSettings) final;
/**
* Makes a new copy
*/
virtual nsresult _Clone(nsIPrintSettings** _retval);
/**
* Assigns values
*/
virtual nsresult _Assign(nsIPrintSettings* aPS);
/**
* Assignment
*/
nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
protected:
void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW*& aOutDevMode);
void InitUnwriteableMargin(HDC aHdc);
nsString mDeviceName;
nsString mDriverName;
LPDEVMODEW mDevMode;
};