[libcalamares] Make #include guards consistent

main
Adriaan de Groot 6 years ago
parent f076dd76ad
commit 432b8848ab

@ -22,8 +22,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARESUTILS_H
#define CALAMARESUTILS_H
#ifndef UTILS_CALAMARESUTILS_H
#define UTILS_CALAMARESUTILS_H
#include "DllMacro.h"
@ -108,6 +108,6 @@ namespace CalamaresUtils
* @brief crash makes Calamares crash immediately.
*/
DLLEXPORT void crash();
}
} // namespace
#endif // CALAMARESUTILS_H
#endif

@ -16,8 +16,8 @@
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARESUTILSSYSTEM_H
#define CALAMARESUTILSSYSTEM_H
#ifndef UTILS_CALAMARESUTILSSYSTEM_H
#define UTILS_CALAMARESUTILSSYSTEM_H
#include "DllMacro.h"
@ -235,6 +235,6 @@ private:
bool m_doChroot;
};
}
} // namespace
#endif // CALAMARESUTILSSYSTEM_H
#endif

@ -16,8 +16,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMMANDLIST_H
#define COMMANDLIST_H
#ifndef UTILS_COMMANDLIST_H
#define UTILS_COMMANDLIST_H
#include "Job.h"
@ -110,4 +110,4 @@ private:
} ;
} // namespace
#endif // COMMANDLIST_H
#endif

@ -17,8 +17,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBCALAMARES_LOCALELABEL_H
#define LIBCALAMARES_LOCALELABEL_H
#ifndef UTILS_LOCALELABEL_H
#define UTILS_LOCALELABEL_H
#include <QLocale>
#include <QString>
@ -41,7 +41,7 @@ public:
/** @brief Empty locale. This uses the system-default locale. */
LocaleLabel();
/** @brief Construct from a locale name.
*
* The @p localeName should be one that Qt recognizes, e.g. en_US or ar_EY.
@ -100,7 +100,7 @@ public:
protected:
void setLabels( const QString& name, LabelFormat format );
QLocale m_locale;
QString m_localeId; // the locale identifier, e.g. "en_GB"
QString m_label; // the native name of the locale
@ -108,6 +108,6 @@ protected:
} ;
} // namespace CalamaresUtils
} // namespace
#endif // LIBCALAMARES_LOCALELABEL_H
#endif

@ -18,8 +18,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARES_LOGGER_H
#define CALAMARES_LOGGER_H
#ifndef UTILS_LOGGER_H
#define UTILS_LOGGER_H
#include <QDebug>
@ -186,10 +186,10 @@ namespace Logger
s << Continuation << it.key().toUtf8().constData() << ':' << ' ' << toString( it.value() ).toUtf8().constData();
return s;
}
}
} // namespace
#define cDebug Logger::CDebug
#define cWarning() Logger::CDebug(Logger::LOGWARNING)
#define cError() Logger::CDebug(Logger::LOGERROR)
#endif // CALAMARES_LOGGER_H
#endif

@ -26,8 +26,8 @@
* in printing integer (underlying) values of an enum.
*/
#ifndef LIBCALAMARES_NAMEDENUM_H
#define LIBCALAMARES_NAMEDENUM_H
#ifndef UTILS_NAMEDENUM_H
#define UTILS_NAMEDENUM_H
#include <QString>
@ -108,5 +108,4 @@ constexpr typename std::underlying_type<E>::type smash( const E e )
return static_cast<typename std::underlying_type<E>::type>( e );
}
#endif

@ -36,8 +36,8 @@
* } ;
*/
#ifndef LIBCALAMARES_NAMEDSUFFIX_H
#define LIBCALAMARES_NAMEDSUFFIX_H
#ifndef UTILS_NAMEDSUFFIX_H
#define UTILS_NAMEDSUFFIX_H
#include "NamedEnum.h"
@ -104,5 +104,4 @@ protected:
unit_t m_unit;
};
#endif

@ -21,8 +21,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARESPLUGINFACTORY_H
#define CALAMARESPLUGINFACTORY_H
#ifndef UTILS_PLUGINFACTORY_H
#define UTILS_PLUGINFACTORY_H
#include "DllMacro.h"
@ -311,8 +311,8 @@ inline T* PluginFactory::create( const QString& keyword, QObject* parent )
return t;
}
}
} // namespace
Q_DECLARE_INTERFACE( Calamares::PluginFactory, CalamaresPluginFactory_iid )
#endif // CALAMARESPLUGINFACTORY_H
#endif

@ -20,8 +20,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARESPLUGINFACTORY_P_H
#define CALAMARESPLUGINFACTORY_P_H
#ifndef UTILS_PLUGINFACTORY_P_H
#define UTILS_PLUGINFACTORY_P_H
#include "PluginFactory.h"
@ -49,6 +49,6 @@ protected:
PluginFactory *q_ptr;
};
}
} // namespace
#endif // CALAMARESPLUGINFACTORY_P_H
#endif

@ -16,8 +16,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CALAMARESUTILS_RETRANSLATOR_H
#define CALAMARESUTILS_RETRANSLATOR_H
#ifndef UTILS_RETRANSLATOR_H
#define UTILS_RETRANSLATOR_H
#include <QList>
#include <QObject>
@ -48,11 +48,11 @@ private:
};
} // namespace CalamaresUtils
} // namespace
#define CALAMARES_RETRANSLATE(body) \
CalamaresUtils::Retranslator::attachRetranslator( this, [=] { body } );
#define CALAMARES_RETRANSLATE_WIDGET(widget,body) \
CalamaresUtils::Retranslator::attachRetranslator( widget, [=] { body } );
#endif // CALAMARESUTILS_RETRANSLATOR_H
#endif

@ -17,8 +17,8 @@
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBCALAMARES_UTILS_UNITS_H
#define LIBCALAMARES_UTILS_UNITS_H
#ifndef UTILS_UNITS_H
#define UTILS_UNITS_H
#include <QtCore/QIntegerForSize>

Loading…
Cancel
Save