Commit 7fd8d16b authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Fix some linter suggestions

parent da50bbaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ namespace allpix {
        /**
         * @brief Constructs request to interrupt event processing
         */
        MissingDependenciesException() {}
        MissingDependenciesException() = default;
    };
} // namespace allpix

+4 −4
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ namespace allpix {
         *
         * Based on get in https://root.cern/doc/master/classROOT_1_1TThreadedObject.html, optimized for faster retrieval.
         */
        std::shared_ptr<T> Get() {
        std::shared_ptr<T> Get() { // NOLINT
            auto idx = ThreadPool::threadNum();
            auto& object = objects_[idx];
            if(!object) {
@@ -207,7 +207,7 @@ namespace allpix {
         *
         * Based on merging in https://root.cern/doc/master/classROOT_1_1TThreadedObject.html.
         */
        std::shared_ptr<T> Merge() {
        std::shared_ptr<T> Merge() { // NOLINT
            ROOT::TThreadedObjectUtils::MergeFunctionType<T> mergeFunction = ROOT::TThreadedObjectUtils::MergeTObjects<T>;
            if(is_merged_) {
                return objects_[0];
@@ -270,9 +270,9 @@ namespace allpix {
        static std::mutex process_id_mutex;
        std::unique_lock<std::mutex> lock(process_id_mutex);

        auto pids = TProcessID::GetPIDs();
        auto* pids = TProcessID::GetPIDs();
        for(int i = 0; i < pids->GetEntries(); ++i) {
            auto pid_ptr = static_cast<TProcessID*>((*pids)[i]);
            auto* pid_ptr = static_cast<TProcessID*>((*pids)[i]);
            pid_ptr->Clear();
        }