summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 21:45:07 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:45:07 (GMT)
commit0b86f3b7936e38b23e4c02c6f59932f889bc985d (patch)
tree8b0f32dcc7a2a12377a99d1e602c83c7aff16e74 /Swift/QtUI/QtSwiftUtil.h
parentcb05f5a908e20006c954ce38755c2e422ecc2388 (diff)
downloadswift-contrib-0b86f3b7936e38b23e4c02c6f59932f889bc985d.zip
swift-contrib-0b86f3b7936e38b23e4c02c6f59932f889bc985d.tar.bz2
Set default codec for strings.
Diffstat (limited to 'Swift/QtUI/QtSwiftUtil.h')
-rw-r--r--Swift/QtUI/QtSwiftUtil.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Swift/QtUI/QtSwiftUtil.h b/Swift/QtUI/QtSwiftUtil.h
index 60a9f18..2d0f970 100644
--- a/Swift/QtUI/QtSwiftUtil.h
+++ b/Swift/QtUI/QtSwiftUtil.h
@@ -4,12 +4,9 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#ifndef SWIFT_QtSwiftUtil_H
-#define SWIFT_QtSwiftUtil_H
+#pragma once
#define P2QSTRING(a) QString::fromUtf8(a.c_str())
#define Q2PSTRING(a) std::string(a.toUtf8())
#define B2QDATE(a) QDateTime::fromTime_t((a - boost::posix_time::from_time_t(0)).total_seconds())
-
-#endif