Skip to content

Commit 59ad79c

Browse files
committed
bump version 3.1.4 and clean code
1 parent f269236 commit 59ad79c

File tree

7 files changed

+25
-10
lines changed

7 files changed

+25
-10
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set (CMAKE_CXX_STANDARD_REQUIRED ON)
99

1010
set (CMAKE_BUILD_PARALLEL_LEVEL 4)
1111

12-
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
12+
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1313

1414
get_filename_component (SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ ABSOLUTE)
1515
get_filename_component (DEPS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../deps/ ABSOLUTE)
@@ -30,9 +30,10 @@ if (WIN32)
3030
find_package (Qt6 COMPONENTS Widgets Network LinguistTools REQUIRED)
3131
else ()
3232
find_package (Qt6 COMPONENTS Widgets X11Extras Network LinguistTools REQUIRED)
33-
find_package(PkgConfig REQUIRED)
34-
pkg_check_modules(X11 x11 xcb REQUIRED)
33+
find_package (PkgConfig REQUIRED)
34+
pkg_check_modules (X11 x11 xcb REQUIRED)
3535
endif ()
36+
3637
set (CMAKE_AUTOUIC ON)
3738
set (CMAKE_AUTOMOC ON)
3839
set (CMAKE_AUTORCC ON)

src/Launchy/GlobalVar.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4444

4545
namespace launchy {
4646

47-
const int LAUNCHY_VERSION = 313;
48-
const char* LAUNCHY_VERSION_STRING = "3.1.3";
47+
const int LAUNCHY_VERSION = 314;
48+
const char* LAUNCHY_VERSION_STRING = "3.1.4";
4949

5050
#if defined(ENVIRONMENT64)
5151
const char* LAUNCHY_BIT_STRING = "64";

src/Launchy/InputDataList.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the Free Software Foundation, either version 3 of the License, or
99
1010
This program is distributed in the hope that it will be useful,
1111
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
GNU General Public License for more details.
1414
1515
You should have received a copy of the GNU General Public License
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818

1919
#include "InputDataList.h"
2020
#include "GlobalVar.h"
21+
2122
namespace launchy {
2223

2324
QString InputDataList::s_separator = QString(" ") + QChar(0x25ba) + QString(" ");
@@ -70,4 +71,6 @@ QString InputDataList::toString(bool omitLast) const {
7071
}
7172
return result;
7273
}
73-
}
74+
75+
} // namespace launchy
76+

src/Launchy/InputDataList.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the Free Software Foundation, either version 3 of the License, or
99
1010
This program is distributed in the hope that it will be useful,
1111
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
GNU General Public License for more details.
1414
1515
You should have received a copy of the GNU General Public License
@@ -20,9 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2020

2121
#include <QList>
2222
#include <QString>
23+
2324
#include "LaunchyLib/InputData.h"
2425

2526
namespace launchy {
27+
2628
class InputDataList : public QList<InputData> {
2729
public:
2830
void parse(const QString& text);
@@ -33,4 +35,5 @@ class InputDataList : public QList<InputData> {
3335
private:
3436
static QString s_separator;
3537
};
38+
3639
} // namespace launchy

src/Launchy/Logger.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22
#include "Logger.h"
3+
34
#include <QDir>
45
#include <QString>
56
#include <QDateTime>
67

78
namespace launchy {
9+
810
FILE* Logger::s_logFile = nullptr;
911
QtMsgType Logger::s_logLevel;
1012

@@ -79,4 +81,5 @@ void Logger::messageHandler(QtMsgType type,
7981
}
8082
fflush(s_logFile);
8183
}
84+
8285
} // namespace launchy

src/Launchy/Logger.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

22
#pragma once
3+
34
#include <QtGlobal>
45
#include <cstdio>
6+
57
namespace launchy {
8+
69
class Logger {
710
public:
811
static void stopLogging();
@@ -19,4 +22,5 @@ class Logger {
1922
static FILE* s_logFile;
2023
static QtMsgType s_logLevel;
2124
};
22-
}
25+
26+
} // namespace launchy

src/Launchy/UpdateChecker.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class QTimer;
2525
class QNetworkReply;
2626

2727
namespace launchy {
28+
2829
class UpdateChecker : public QObject {
2930
Q_OBJECT
3031
public:
@@ -47,4 +48,4 @@ private slots:
4748
bool m_manualCheck;
4849
};
4950

50-
}
51+
} // namespace launchy

0 commit comments

Comments
 (0)