Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 78a1b9f

Browse files
committed
Fix style nitpicks with pointers
Signed-off-by: Alexander Scheel <[email protected]>
1 parent 766d66a commit 78a1b9f

8 files changed

+12
-12
lines changed

include/RemediationRoleSaver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RemediationSaverBase
4545
void removeFileWhenEmpty(const QString& filename);
4646

4747
QWidget* mParentWindow;
48-
DiagnosticsDialog * mDiagnostics;
48+
DiagnosticsDialog* mDiagnostics;
4949

5050
const QString mSaveMessage;
5151
const QString mFiletypeExtension;

include/RemoteMachineComboBox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RemoteMachineComboBox : public QWidget
6464
QSettings* mQSettings;
6565

6666
QStringList mRecentTargets;
67-
QComboBox *mRecentComboBox;
67+
QComboBox* mRecentComboBox;
6868
};
6969

7070
#endif

include/TailoringUndoCommands.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ProfileTitleChangeUndoCommand : public QUndoCommand
9999
virtual void redo();
100100
virtual void undo();
101101

102-
virtual bool mergeWith(const QUndoCommand *other);
102+
virtual bool mergeWith(const QUndoCommand* other);
103103

104104
private:
105105
void refreshText();
@@ -124,7 +124,7 @@ class ProfileDescriptionChangeUndoCommand : public QUndoCommand
124124
virtual void redo();
125125
virtual void undo();
126126

127-
virtual bool mergeWith(const QUndoCommand *other);
127+
virtual bool mergeWith(const QUndoCommand* other);
128128

129129
private:
130130
void refreshText();

include/TailoringWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class TailoringWindow : public QMainWindow
172172
void syncCollapsedItem(QTreeWidgetItem* item, QSet<QString>& usedCollapsedIds);
173173

174174
void createTreeItem(QTreeWidgetItem* treeItem, struct xccdf_item* xccdfItem);
175-
void synchronizeTreeItemSelections(QTreeWidgetItem *treeItem);
175+
void synchronizeTreeItemSelections(QTreeWidgetItem* treeItem);
176176

177177
void createSelectionMacro(QTreeWidgetItem* treeItem, bool checkState, const QString& commandName);
178178

src/APIHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ QString oscapItemGetReadableTitle(struct xccdf_item* item, struct xccdf_policy*
5151
return ret;
5252
}
5353

54-
QString oscapItemGetReadableDescription(struct xccdf_item *item, struct xccdf_policy *policy, const QString& lang)
54+
QString oscapItemGetReadableDescription(struct xccdf_item* item, struct xccdf_policy* policy, const QString& lang)
5555
{
5656
struct oscap_text_iterator* desc_it = xccdf_item_get_description(item);
5757
oscap_text* unresolved = oscap_textlist_get_preferred_text(desc_it, lang.isEmpty() ? NULL : lang.toUtf8().constData());

src/RemediationRoleSaver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ void ResultBasedLibraryRemediationSaver::saveToFile(const QString& filename)
256256
if (arf_session == NULL) {
257257
throw std::runtime_error("Couldn't open ARF session");
258258
}
259-
struct oscap_source *report_source = ds_rds_session_select_report(arf_session, NULL);
259+
struct oscap_source* report_source = ds_rds_session_select_report(arf_session, NULL);
260260
if (report_source == NULL) {
261261
throw std::runtime_error("Couldn't get report source from the ARF session");
262262
}
263-
struct oscap_source *report_request_source = ds_rds_session_select_report_request(arf_session, NULL);
263+
struct oscap_source* report_request_source = ds_rds_session_select_report_request(arf_session, NULL);
264264
if (report_request_source == NULL) {
265265
throw std::runtime_error("Couldn't get report request source from the ARF session");
266266
}

src/TailoringUndoCommands.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void ProfileTitleChangeUndoCommand::undo()
5050
mWindow->refreshProfileDockWidget();
5151
}
5252

53-
bool ProfileTitleChangeUndoCommand::mergeWith(const QUndoCommand *other)
53+
bool ProfileTitleChangeUndoCommand::mergeWith(const QUndoCommand* other)
5454
{
5555
if (other->id() != id())
5656
return false;
@@ -93,7 +93,7 @@ void ProfileDescriptionChangeUndoCommand::undo()
9393
mWindow->refreshProfileDockWidget();
9494
}
9595

96-
bool ProfileDescriptionChangeUndoCommand::mergeWith(const QUndoCommand *other)
96+
bool ProfileDescriptionChangeUndoCommand::mergeWith(const QUndoCommand* other)
9797
{
9898
if (other->id() != id())
9999
return false;

src/TailoringWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void TailoringWindow::deleteProfileAndDiscard()
541541
close();
542542
}
543543

544-
void TailoringWindow::closeEvent(QCloseEvent * event)
544+
void TailoringWindow::closeEvent(QCloseEvent* event)
545545
{
546546
if (!mChangesConfirmed)
547547
{
@@ -899,7 +899,7 @@ void TailoringWindow::searchNext()
899899
// We cannot use setCurrentItem() on disabled items
900900
// so we will use a workaround
901901

902-
QTreeWidgetItem * dummyItem = mUI.itemsTree->currentItem();
902+
QTreeWidgetItem* dummyItem = mUI.itemsTree->currentItem();
903903

904904
// Setting of "new" current item cause removing selection
905905
// from rest of items

0 commit comments

Comments
 (0)