Skip to content

Commit

Permalink
Replace include guards in all *.h-files by #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Thiel committed Nov 13, 2018
1 parent d0b92fa commit 10507e8
Show file tree
Hide file tree
Showing 686 changed files with 800 additions and 2,938 deletions.
4 changes: 1 addition & 3 deletions 2d/include/pcl/2d/convolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
*/

#ifndef PCL_2D_CONVOLUTION_H
#define PCL_2D_CONVOLUTION_H
#pragma once

#include <pcl/pcl_base.h>
#include <pcl/filters/filter.h>
Expand Down Expand Up @@ -156,4 +155,3 @@ POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PointXYZIEdge,
(float, magnitude_x, magnitude_x)
(float, magnitude_y, magnitude_y)
)
#endif // PCL_2D_CONVOLUTION_2D_H
6 changes: 1 addition & 5 deletions 2d/include/pcl/2d/edge.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
*/

#ifndef PCL_2D_EDGE_H
#define PCL_2D_EDGE_H
#pragma once

#include <pcl/pcl_base.h>
#include <pcl/2d/convolution.h>
Expand Down Expand Up @@ -303,6 +302,3 @@ namespace pcl
};
}
#include <pcl/2d/impl/edge.hpp>

#endif // PCL_2D_EDGE_H

7 changes: 3 additions & 4 deletions 2d/include/pcl/2d/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
*
*/

#ifndef PCL_2D_KERNEL_H_
#define PCL_2D_KERNEL_H_
#pragma once

#include <pcl/pcl_base.h>
#include <pcl/point_types.h>

namespace pcl
{
template<typename PointT>
Expand Down Expand Up @@ -240,5 +241,3 @@ namespace pcl
}

#include <pcl/2d/impl/kernel.hpp>

#endif // PCL_2D_KERNEL_H_
5 changes: 1 addition & 4 deletions 2d/include/pcl/2d/keypoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
* Author: somani
*/

#ifndef PCL_2D_KEYPOINT_H_
#define PCL_2D_KEYPOINT_H_
#pragma once

#include <pcl/2d/edge.h>

Expand Down Expand Up @@ -71,5 +70,3 @@ namespace pcl
}

#include <pcl/2d/impl/keypoint.hpp>

#endif // PCL_2D_KEYPOINT_H_
5 changes: 1 addition & 4 deletions 2d/include/pcl/2d/morphology.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
*/

#ifndef PCL_2D_MORPHOLOGY_H_
#define PCL_2D_MORPHOLOGY_H_
#pragma once

#include <pcl/pcl_base.h>

Expand Down Expand Up @@ -196,5 +195,3 @@ namespace pcl
}

#include <pcl/2d/impl/morphology.hpp>

#endif // PCL_2D_MORPHOLOGY_H_
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_BOOST_H
#define PCL_APPS_IN_HAND_SCANNER_BOOST_H
#pragma once

#ifdef __GNUC__
# pragma GCC system_header
Expand All @@ -55,5 +54,3 @@
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <boost/type_traits/is_same.hpp>

#endif // PCL_APPS_IN_HAND_SCANNER_BOOST_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_COMMON_TYPES_H
#define PCL_APPS_IN_HAND_SCANNER_COMMON_TYPES_H
#pragma once

#include <stdint.h>

Expand Down Expand Up @@ -93,5 +92,3 @@ namespace pcl
typedef Mesh::ConstPtr MeshConstPtr;
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_COMMON_TYPES_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_EIGEN_H
#define PCL_APPS_IN_HAND_SCANNER_EIGEN_H
#pragma once

#ifdef __GNUC__
# pragma GCC system_header
Expand All @@ -48,5 +47,3 @@
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/Cholesky>

#endif // PCL_APPS_IN_HAND_SCANNER_EIGEN_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
*
*/


#ifndef PCL_APPS_IN_HAND_SCANNER_HELP_WINDOW_H
#define PCL_APPS_IN_HAND_SCANNER_HELP_WINDOW_H
#pragma once

#include <QDialog>

Expand All @@ -66,5 +64,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_HELP_WINDOW_H
5 changes: 1 addition & 4 deletions apps/in_hand_scanner/include/pcl/apps/in_hand_scanner/icp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_ICP_H
#define PCL_APPS_IN_HAND_SCANNER_ICP_H
#pragma once

#include <pcl/pcl_exports.h>
#include <pcl/apps/in_hand_scanner/boost.h>
Expand Down Expand Up @@ -221,5 +220,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_ICP_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_IN_HAND_SCANNER_H
#define PCL_APPS_IN_HAND_SCANNER_IN_HAND_SCANNER_H
#pragma once

#include <string>
#include <sstream>
Expand Down Expand Up @@ -307,5 +306,3 @@ namespace pcl

// http://doc.qt.digia.com/qt/qmetatype.html#Q_DECLARE_METATYPE
Q_DECLARE_METATYPE (pcl::ihs::InHandScanner::RunningMode)

#endif // PCL_APPS_IN_HAND_SCANNER_IN_HAND_SCANNER_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_INPUT_DATA_PROCESSING_H
#define PCL_APPS_IN_HAND_SCANNER_INPUT_DATA_PROCESSING_H
#pragma once

#include <pcl/pcl_exports.h>
#include <pcl/apps/in_hand_scanner/eigen.h>
Expand Down Expand Up @@ -239,5 +238,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_INPUT_DATA_PROCESSING_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_INTEGRATION_H
#define PCL_APPS_IN_HAND_SCANNER_INTEGRATION_H
#pragma once

#include <stdint.h>

Expand Down Expand Up @@ -230,5 +229,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_INTEGRATION_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_MAIN_WINDOW_H
#define PCL_APPS_IN_HAND_SCANNER_MAIN_WINDOW_H
#pragma once

#include <QMainWindow>

Expand Down Expand Up @@ -136,5 +135,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_MAIN_WINDOW_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_MESH_PROCESSING_H
#define PCL_APPS_IN_HAND_SCANNER_MESH_PROCESSING_H
#pragma once

#include <pcl/apps/in_hand_scanner/common_types.h>

Expand Down Expand Up @@ -74,5 +73,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_MESH_PROCESSING_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_OFFLINE_INTEGRATION_H
#define PCL_APPS_IN_HAND_SCANNER_OFFLINE_INTEGRATION_H
#pragma once

#include <vector>
#include <string>
Expand Down Expand Up @@ -223,5 +222,3 @@ namespace pcl
};
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_OFFLINE_INTEGRATION_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_OPENGL_VIEWER_H
#define PCL_APPS_IN_HAND_SCANNER_OPENGL_VIEWER_H
#pragma once

#include <string>

Expand Down Expand Up @@ -452,5 +451,3 @@ namespace pcl
// http://doc.qt.digia.com/qt/qmetatype.html#Q_DECLARE_METATYPE
Q_DECLARE_METATYPE (pcl::ihs::OpenGLViewer::MeshRepresentation)
Q_DECLARE_METATYPE (pcl::ihs::OpenGLViewer::Coloring)

#endif // PCL_APPS_IN_HAND_SCANNER_OPENGL_VIEWER_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_UTILS_H
#define PCL_APPS_IN_HAND_SCANNER_UTILS_H
#pragma once

namespace pcl
{
Expand All @@ -53,5 +52,3 @@ namespace pcl
}
} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_UTILS_H
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*
*/

#ifndef PCL_APPS_IN_HAND_SCANNER_VISIBILITY_CONFIDENCE_H
#define PCL_APPS_IN_HAND_SCANNER_VISIBILITY_CONFIDENCE_H
#pragma once

#include <stdint.h>

Expand Down Expand Up @@ -86,5 +85,3 @@ namespace pcl

} // End namespace ihs
} // End namespace pcl

#endif // PCL_APPS_IN_HAND_SCANNER_VISIBILITY_CONFIDENCE_H
5 changes: 1 addition & 4 deletions apps/include/pcl/apps/openni_passthrough.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
*/

#ifndef PCL_APPS_OPENNI_PASSTHROUGH_3D_
#define PCL_APPS_OPENNI_PASSTHROUGH_3D_
#pragma once

// PCL
#include <pcl/apps/openni_passthrough_qt.h>
Expand Down Expand Up @@ -116,5 +115,3 @@ class OpenNIPassthrough : public QMainWindow
void
valueChanged (int new_value);
};

#endif // PCL_APPS_OPENNI_PASSTHROUGH_3D_
5 changes: 1 addition & 4 deletions apps/include/pcl/apps/openni_passthrough_qt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
*/

#ifndef PCL_APPS_OPENNI_PASSTHROUGH_QT_
#define PCL_APPS_OPENNI_PASSTHROUGH_QT_
#pragma once

#ifdef __GNUC__
#pragma GCC system_header
Expand All @@ -48,5 +47,3 @@
#include <QMutex>
#include <QTimer>
#include <QObject>

#endif // PCL_APPS_OPENNI_PASSTHROUGH_QT_
5 changes: 1 addition & 4 deletions apps/include/pcl/apps/organized_segmentation_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef PCL_ORGANIZED_SEGMENTATION_DEMO_H_
#define PCL_ORGANIZED_SEGMENTATION_DEMO_H_
#pragma once

#include <pcl/apps/organized_segmentation_demo_qt.h>

Expand Down Expand Up @@ -182,5 +181,3 @@ class OrganizedSegmentationDemo : public QMainWindow
timeoutSlot();

};

#endif // PCL_ORGANIZED_SEGMENTATION_DEMO_H_
5 changes: 1 addition & 4 deletions apps/include/pcl/apps/organized_segmentation_demo_qt.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef PCL_ORGANIZED_SEGMENTATION_DEMO_QT_H_
#define PCL_ORGANIZED_SEGMENTATION_DEMO_QT_H_
#pragma once

#ifdef __GNUC__
#pragma GCC system_header
Expand All @@ -46,5 +45,3 @@
#include <QMainWindow>
#include <QMutex>
#include <QTimer>

#endif // PCL_ORGANIZED_SEGMENTATION_DEMO_QT_H_
5 changes: 1 addition & 4 deletions apps/include/pcl/apps/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
*
*/

#ifndef PCL_APPS_TIMER_H_
#define PCL_APPS_TIMER_H_
#pragma once

#define MEASURE_FUNCTION_TIME
#include <pcl/common/time.h> //fps calculations
Expand All @@ -64,5 +63,3 @@ do \
{ \
}while(false)
#endif

#endif // PCL_APPS_TIMER_H_
Loading

0 comments on commit 10507e8

Please sign in to comment.