Commit 92dd2629 authored by Mathieu Valois's avatar Mathieu Valois
Browse files

inlining some methods

parent 33d4263b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -210,11 +210,11 @@ public:
	 */
	void print_stats();

	uint64_t getTotalCounter();
	uint64_t getTotalFilter();
	uint64_t getNbSecurePasswords();
	IntOccurrence getStatsLength();
	StringOccurrence getStatsCharsets();
	inline uint64_t getTotalCounter() const { return total_counter; }
	inline uint64_t getTotalFilter() const { return total_filter; }
	inline uint64_t getNbSecurePasswords() const { return nbSecurePassword; }
	inline const IntOccurrence& getStatsLength() const { return stats_length; }
	inline const StringOccurrence& getStatsCharsets() const { return stats_charactersets; }



+0 −20
Original line number Diff line number Diff line
@@ -631,26 +631,6 @@ void * generate_stats_thread(void * threadarg) {
	pthread_exit(NULL);
}

uint64_t Statsgen::getTotalCounter() {
	return total_counter;
}

uint64_t Statsgen::getTotalFilter() {
	return total_filter;
}

uint64_t Statsgen::getNbSecurePasswords() {
	return nbSecurePassword;
}

IntOccurrence Statsgen::getStatsLength(){
	return stats_length;
}

StringOccurrence Statsgen::getStatsCharsets(){
	return stats_charactersets;
}


uint64_t nbline_file(const string & filename) {
	ifstream readfile(filename);
+4 −4
Original line number Diff line number Diff line
@@ -9,15 +9,15 @@
 * Please see the attached LICENSE file for additional licensing information.
 */

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "utils.h"

#include <QFileDialog>
#include <QTextStream>
#include <iostream>
#include <QtCharts>

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "utils.h"

using namespace std;

MainWindow::MainWindow(QWidget *parent) :