Changeset 14724


Ignore:
Timestamp:
Mar 29, 2016, 4:37:21 PM (14 months ago)
Author:
jordan
Message:

use '#pragma once' instead of #ifndef..#define..#endif guards

Location:
trunk
Files:
129 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.h

    r14485 r14724  
    88 */
    99
    10 #ifndef DTR_DAEMON_H
    11 #define DTR_DAEMON_H
     10#pragma once
    1211
    1312struct tr_error;
     
    2726                 struct tr_error     ** error);
    2827
    29 #endif /* DTR_DAEMON_H */
  • trunk/gtk/actions.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_ACTIONS_H
    11 #define GTR_ACTIONS_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    2928GtkWidget*  gtr_action_get_widget  (const char * path);
    3029
    31 #endif
  • trunk/gtk/conf.h

    r13683 r14724  
    2323 *****************************************************************************/
    2424
    25 #ifndef GTR_CONFIG_H
    26 #define GTR_CONFIG_H
     25#pragma once
    2726
    2827#include <inttypes.h>
     
    4746struct tr_variant*  gtr_pref_get_all         (void);
    4847
    49 #endif /* GTR_CONFIG_H */
  • trunk/gtk/details.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_TORRENT_DETAILS_H
    11 #define GTR_TORRENT_DETAILS_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    2019                                                      GSList    * torrent_ids);
    2120
    22 #endif /* GTR_TORRENT_DETAILS_H */
  • trunk/gtk/dialogs.h

    r13625 r14724  
    2323 *****************************************************************************/
    2424
    25 #ifndef GTR_DIALOGS_H
    26 #define GTR_DIALOGS_H
     25#pragma once
    2726
    2827#include "tr-core.h"
     
    3736                          gboolean    doDelete);
    3837
    39 #endif /* GTR_DIALOGS_H */
  • trunk/gtk/favicon.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_FAVICON_CACHE_H
    11 #define GTR_FAVICON_CACHE_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    2423                               gpointer      pixbuf_ready_func_data);
    2524
    26 
    27 #endif
  • trunk/gtk/file-list.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTK_TORRENT_FILE_LIST_H
    11 #define GTK_TORRENT_FILE_LIST_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1817void        gtr_file_list_set_torrent (GtkWidget *, int torrent_id);
    1918
    20 #endif
  • trunk/gtk/filter.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_FILTER_H
    11 #define GTR_FILTER_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1817                                GtkTreeModel  ** filter_model);
    1918
    20 #endif
  • trunk/gtk/hig.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_HIG_H
    11 #define GTR_HIG_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    7473};
    7574
    76 #endif /* GTR_HIG_H */
  • trunk/gtk/icons.h

    r13625 r14724  
    77 */
    88
    9 #ifndef GTR_ICONS_H
    10 #define GTR_ICONS_H
     9#pragma once
    1110
    1211#define DIRECTORY_MIME_TYPE "folder"
     
    1918                                     GtkWidget    * for_widget);
    2019
    21 #endif
  • trunk/gtk/makemeta-ui.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_TORRENT_CREATION_DIALOG_H
    11 #define GTR_TORRENT_CREATION_DIALOG_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1615GtkWidget* gtr_torrent_creation_dialog_new (GtkWindow * parent, TrCore * core);
    1716
    18 #endif
  • trunk/gtk/msgwin.h

    r14241 r14724  
    99
    1010
    11 #ifndef GTR_MSGWIN_H
    12 #define GTR_MSGWIN_H
     11#pragma once
    1312
    1413#include "tr-core.h"
     
    1615GtkWidget * gtr_message_log_window_new (GtkWindow * parent, TrCore * core);
    1716
    18 #endif
  • trunk/gtk/notify.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_NOTIFY_H
    11 #define GTR_NOTIFY_H
     10#pragma once
    1211
    1312#include "tr-core.h"
     
    1918void gtr_notify_torrent_completed (TrCore * core, int torrent_id);
    2019
    21 #endif
  • trunk/gtk/open-dialog.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_OPEN_DIALOG_H
    11 #define GTR_OPEN_DIALOG_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    2019GtkWidget* gtr_torrent_options_dialog_new (GtkWindow * parent, TrCore * core, tr_ctor * ctor);
    2120
    22 #endif /* GTR_ADD_DIALOG */
  • trunk/gtk/relocate.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_RELOCATE_H
    11 #define GTR_RELOCATE_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1817                                     GSList    * torrentIds);
    1918
    20 #endif
  • trunk/gtk/stats.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_STATS_DIALOG_H
    11 #define GTR_STATS_DIALOG_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1615GtkWidget* gtr_stats_dialog_new (GtkWindow * parent, TrCore * core);
    1716
    18 #endif /* GTR_STATS_DIALOG_H */
  • trunk/gtk/torrent-cell-renderer.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_TORRENT_CELL_RENDERER_H
    11 #define GTR_TORRENT_CELL_RENDERER_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    4140GtkCellRenderer * torrent_cell_renderer_new (void);
    4241
    43 #endif /* GTR_TORRENT_CELL_RENDERER_H */
  • trunk/gtk/tr-core.h

    r14681 r14724  
    2323 *****************************************************************************/
    2424
    25 #ifndef GTR_CORE_H
    26 #define GTR_CORE_H
     25#pragma once
    2726
    2827#include <gtk/gtk.h>
     
    197196G_END_DECLS
    198197
    199 
    200 #endif /* GTR_CORE_H */
  • trunk/gtk/tr-icon.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_ICON_H
    11 #define GTR_ICON_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    1716void      gtr_icon_refresh (gpointer);
    1817
    19 #endif /* GTR_ICON_H */
  • trunk/gtk/tr-prefs.h

    r14241 r14724  
    88 */
    99
    10 #ifndef GTR_PREFS_H
    11 #define GTR_PREFS_H
     10#pragma once
    1211
    1312#include <gtk/gtk.h>
     
    5453};
    5554
    56 #endif /* GTR_PREFS_H */
  • trunk/gtk/tr-window.h

    r13625 r14724  
    2323 *****************************************************************************/
    2424
    25 #ifndef GTR_WINDOW_H
    26 #define GTR_WINDOW_H
     25#pragma once
    2726
    2827#include <gtk/gtk.h>
     
    3433void               gtr_window_refresh (GtkWindow *);
    3534
    36 #endif /* GTR_WINDOW_H */
  • trunk/gtk/util.h

    r14587 r14724  
    88 */
    99
    10 #ifndef GTR_UTIL_H
    11 #define GTR_UTIL_H
     10#pragma once
    1211
    1312#include <sys/types.h>
     
    165164void gtr_label_set_text (GtkLabel * lb, const char * text);
    166165
    167 #endif /* GTR_UTIL_H */
  • trunk/libtransmission/ConvertUTF.h

    r14633 r14724  
    1 #ifndef CONVERT_UNICODE_H
    2 #define CONVERT_UNICODE_H
     1#ifndef __TRANSMISSION__
     2 #error only libtransmission should #include this header.
     3#endif
    34
    4 #ifndef __TRANSMISSION__
    5 #error only libtransmission should #include this header.
    6 #endif
     5#pragma once
    76
    87/*
     
    160159
    161160/* --------------------------------------------------------------------- */
    162 
    163 #endif /* CONVERT_UNICODE_H */
  • trunk/libtransmission/announcer-common.h

    r14521 r14724  
    1212#endif
    1313
    14 #ifndef _TR_ANNOUNCER_COMMON_H_
    15 #define _TR_ANNOUNCER_COMMON_H_
     14#pragma once
    1615
    1716#include "transmission.h" /* SHA_DIGEST_LENGTH */
     
    236235void tr_tracker_udp_start_shutdown (tr_session * session);
    237236
    238 #endif /* _TR_ANNOUNCER_COMMON_H_ */
  • trunk/libtransmission/announcer.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef _TR_ANNOUNCER_H_
    15 #define _TR_ANNOUNCER_H_
     14#pragma once
    1615
    1716#include "transmission.h"
     
    112111bool tr_tracker_udp_is_idle (const tr_session * session);
    113112
    114 
    115 
    116 #endif /* _TR_ANNOUNCER_H_ */
  • trunk/libtransmission/bandwidth.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_BANDWIDTH_H
    15 #define TR_BANDWIDTH_H
     14#pragma once
    1615
    1716#include <assert.h>
     
    268267
    269268/* @} */
    270 #endif
     269
  • trunk/libtransmission/bitfield.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_BITFIELD_H
    15 #define TR_BITFIELD_H 1
     14#pragma once
    1615
    1716#include "transmission.h"
     
    9897bool tr_bitfieldHas (const tr_bitfield * b, size_t n);
    9998
    100 #endif
  • trunk/libtransmission/blocklist.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_BLOCKLIST_H
    15 #define TR_BLOCKLIST_H
     14#pragma once
    1615
    1716struct tr_address;
     
    4140                                                 const char              * filename);
    4241
    43 #endif
  • trunk/libtransmission/cache.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_CACHE_H
    15 #define TR_CACHE_H
     14#pragma once
    1615
    1716struct evbuffer;
     
    6867                       tr_file_index_t    file);
    6968
    70 #endif
  • trunk/libtransmission/clients.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_CLIENTS_H
    15 #define TR_CLIENTS_H
     14#pragma once
    1615
    1716/**
     
    2120char* tr_clientForId (char * buf, size_t buflen, const void * peer_id);
    2221
    23 #endif
  • trunk/libtransmission/completion.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_COMPLETION_H
    15 #define TR_COMPLETION_H
     14#pragma once
    1615
    1716#include "transmission.h"
     
    143142}
    144143
    145 
    146 #endif
  • trunk/libtransmission/crypto-test-ref.h

    r14419 r14724  
    88 */
    99
    10 #ifndef TR_CRYPTO_TEST_REF_H
    11 #define TR_CRYPTO_TEST_REF_H
     10#pragma once
    1211
    1312/* #define CRYPTO_REFERENCE_CHECK */
     
    172171#endif /* CRYPTO_REFERENCE_CHECK */
    173172
    174 #endif /* TR_CRYPTO_TEST_REF_H */
  • trunk/libtransmission/crypto-utils.h

    r14422 r14724  
    88 */
    99
    10 #ifndef TR_CRYPTO_UTILS_H
    11 #define TR_CRYPTO_UTILS_H
     10#pragma once
    1211
    1312#include <inttypes.h>
     
    223222#endif
    224223
    225 #endif /* TR_CRYPTO_UTILS_H */
  • trunk/libtransmission/crypto.h

    r14360 r14724  
    88 */
    99
    10 #ifndef TR_ENCRYPTION_H
    11 #define TR_ENCRYPTION_H
     10#ifndef __TRANSMISSION__
     11 #error only libtransmission should #include this header.
     12#endif
    1213
    13 #ifndef __TRANSMISSION__
    14 #error only libtransmission should #include this header.
    15 #endif
     14#pragma once
    1615
    1716#include <inttypes.h>
     
    8685/* @} */
    8786
    88 #endif
  • trunk/libtransmission/error-types.h

    r14492 r14724  
    88 */
    99
    10 #ifndef TR_ERROR_TYPES_H
    11 #define TR_ERROR_TYPES_H
     10#pragma once
    1211
    1312#ifdef _WIN32
     
    3938#endif /* _WIN32 */
    4039
    41 #endif /* TR_ERROR_TYPES_H */
  • trunk/libtransmission/error.h

    r14369 r14724  
    88 */
    99
    10 #ifndef TR_ERROR_H
    11 #define TR_ERROR_H
     10#pragma once
    1211
    1312#include <stdarg.h>
     
    172171#endif
    173172
    174 #endif
  • trunk/libtransmission/file.h

    r14584 r14724  
    88 */
    99
    10 #ifndef TR_FILE_H
    11 #define TR_FILE_H
     10#pragma once
    1211
    1312#include <inttypes.h>
     
    692691#endif
    693692
    694 #endif
  • trunk/libtransmission/handshake.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_HANDSHAKE_H
    15 #define TR_HANDSHAKE_H
     14#pragma once
    1615
    1716#include "transmission.h"
     
    5251
    5352/** @} */
    54 #endif
  • trunk/libtransmission/history.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_RECENT_HISTORY_H
    15 #define TR_RECENT_HISTORY_H
     14#pragma once
    1615
    1716/**
     
    5756unsigned int tr_historyGet (const tr_recentHistory *, time_t when, unsigned int seconds);
    5857
    59 #endif
  • trunk/libtransmission/inout.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_IO_H
    15 #define TR_IO_H 1
     14#pragma once
    1615
    1716struct tr_torrent;
     
    6564
    6665/* @} */
    67 #endif
  • trunk/libtransmission/libtransmission-test.h

    r14721 r14724  
    1010/* Note VERBOSE needs to be (un)defined before including this file */
    1111
    12 #ifndef LIBTRANSMISSION_TEST_H
    13 #define LIBTRANSMISSION_TEST_H 1
     12#pragma once
    1413
    1514#include <stdio.h>
     
    102101void         libttest_sync (void);
    103102
    104 #endif /* !LIBTRANSMISSION_TEST_H */
  • trunk/libtransmission/list.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_LIST_H
    15 #define TR_LIST_H
     14#pragma once
    1615
    1716/**
     
    111110
    112111/* @} */
    113 #endif /* TR_LIST_H */
    114112
  • trunk/libtransmission/log.h

    r14476 r14724  
    88 */
    99
    10 #ifndef TR_LOG_H
    11 #define TR_LOG_H 1
     10#pragma once
    1211
    1312#include <stddef.h> /* size_t */
     
    130129/** @} */
    131130
    132 #endif
  • trunk/libtransmission/magnet.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_MAGNET_H
    15 #define TR_MAGNET_H 1
     14#pragma once
    1615
    1716#include "transmission.h"
     
    4039void tr_magnetFree (tr_magnet_info * info);
    4140
    42 #endif
  • trunk/libtransmission/makemeta.h

    r14294 r14724  
    88 */
    99
    10 #ifndef TR_MAKEMETA_H
    11 #define TR_MAKEMETA_H 1
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    131130#endif
    132131
    133 #endif
  • trunk/libtransmission/metainfo.h

    r14634 r14724  
    1212#endif
    1313
    14 #ifndef TR_METAINFO_H
    15 #define TR_METAINFO_H 1
     14#pragma once
    1615
    1716#include "transmission.h"
     
    2928char* tr_metainfoGetBasename (const tr_info *);
    3029
    31 
    32 #endif
  • trunk/libtransmission/natpmp_local.h

    r14369 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_NATPMP_H
    15 #define TR_NATPMP_H 1
     14#pragma once
    1615
    1716/**
     
    2928
    3029/* @} */
    31 #endif
  • trunk/libtransmission/net.h

    r14721 r14724  
    2424
    2525#ifndef __TRANSMISSION__
    26 #error only libtransmission should #include this header.
     26 #error only libtransmission should #include this header.
    2727#endif
    2828
    29 #ifndef TR_NET_H
    30 #define TR_NET_H
     29#pragma once
    3130
    3231#ifdef _WIN32
     
    175174const unsigned char *tr_globalIPv6 (void);
    176175
    177 #endif /* TR_NET_H */
  • trunk/libtransmission/peer-common.h

    r14382 r14724  
    1212#endif
    1313
    14 #ifndef TR_PEER_H
    15 #define TR_PEER_H
     14#pragma once
    1615
    1716#include "transmission.h"
     
    181180/** @} */
    182181
    183 #endif
  • trunk/libtransmission/peer-io.h

    r14479 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_PEER_IO_H
    15 #define TR_PEER_IO_H
     14#pragma once
    1615
    1716/**
     
    399398/* @} */
    400399
    401 #endif
  • trunk/libtransmission/peer-mgr.h

    r14479 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_PEER_MGR_H
    15 #define TR_PEER_MGR_H
     14#pragma once
    1615
    1716#include <inttypes.h> /* uint16_t */
     
    188187
    189188/* @} */
    190 
    191 #endif
  • trunk/libtransmission/peer-msgs.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_PEER_MSGS_H
    15 #define TR_PEER_MSGS_H
     14#pragma once
    1615
    1716#include <inttypes.h>
     
    8988
    9089/* @} */
    91 #endif
  • trunk/libtransmission/platform-quota.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_PLATFORM_QUOTA_H
    15 #define TR_PLATFORM_QUOTA_H
     14#pragma once
    1615
    1716/**
     
    3736/** @} */
    3837
    39 #endif
  • trunk/libtransmission/platform.h

    r14721 r14724  
    1212#endif
    1313
    14 #ifndef TR_PLATFORM_H
    15 #define TR_PLATFORM_H
     14#pragma once
    1615
    1716#define TR_PATH_DELIMITER '/'
     
    8079/* @} */
    8180
    82 #endif
  • trunk/libtransmission/port-forwarding.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef SHARED_H
    15 #define SHARED_H 1
     14#pragma once
    1615
    1716#include "transmission.h"
     
    4140
    4241/** @} */
    43 #endif
  • trunk/libtransmission/ptrarray.h

    r14721 r14724  
    1212#endif
    1313
    14 #ifndef TR_PTR_ARRAY_H
    15 #define TR_PTR_ARRAY_H
     14#pragma once
    1615
    1716#include <assert.h>
     
    141140
    142141/* @} */
    143 #endif
  • trunk/libtransmission/quark.h

    r14369 r14724  
    88 */
    99
    10 #ifndef TR_QUARK_H
    11 #define TR_QUARK_H 1
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    433432#endif
    434433
    435 #endif
  • trunk/libtransmission/resume.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_RESUME_H
    15 #define TR_RESUME_H
     14#pragma once
    1615
    1716enum
     
    3837  TR_FR_TIME_DOWNLOADING    = (1 << 19),
    3938  TR_FR_FILENAMES           = (1 << 20),
    40   TR_FR_NAME                = (1 << 21),
     39  TR_FR_NAME                = (1 << 21)
    4140};
    4241
     
    5554                                 const char        * newname);
    5655
    57 #endif
  • trunk/libtransmission/rpc-server.h

    r14241 r14724  
    1212#endif
    1313
     14#pragma once
     15
    1416#include "variant.h"
    15 
    16 #ifndef TR_RPC_SERVER_H
    17 #define TR_RPC_SERVER_H
    1817
    1918typedef struct tr_rpc_server tr_rpc_server;
     
    6665const char*     tr_rpcGetBindAddress (const tr_rpc_server * server);
    6766
    68 #endif
  • trunk/libtransmission/rpcimpl.h

    r14633 r14724  
    88 */
    99
    10 #ifndef TR_RPC_H
    11 #define TR_RPC_H
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    4746#endif
    4847
    49 #endif /* TR_RPC_H */
  • trunk/libtransmission/session.h

    r14721 r14724  
    1212#endif
    1313
    14 #ifndef TR_INTERNAL_H
    15 #define TR_INTERNAL_H 1
     14#pragma once
    1615
    1716#define TR_NAME "Transmission"
     
    328327int tr_sessionCountQueueFreeSlots (tr_session * session, tr_direction);
    329328
    330 
    331 #endif
  • trunk/libtransmission/stats.h

    r14241 r14724  
    1111#endif
    1212
    13 #ifndef TR_STATS_H
    14 #define TR_STATS_H
     13#pragma once
    1514
    1615void tr_statsInit          (tr_session * session);
     
    2120void tr_statsFileCreated   (tr_session * session);
    2221
    23 #endif
  • trunk/libtransmission/torrent-magnet.h

    r14664 r14724  
    1212#endif
    1313
    14 #ifndef TR_TORRENT_MAGNET_H
    15 #define TR_TORRENT_MAGNET_H 1
     14#pragma once
    1615
    1716#include <inttypes.h>
     
    3433double tr_torrentGetMetadataPercent (const tr_torrent * tor);
    3534
    36 #endif
  • trunk/libtransmission/torrent.h

    r14634 r14724  
    1212#endif
    1313
    14 #ifndef TR_TORRENT_H
    15 #define TR_TORRENT_H 1
     14#pragma once
    1615
    1716#include "bandwidth.h" /* tr_bandwidth */
     
    512511}
    513512
    514 #endif
  • trunk/libtransmission/tr-getopt.h

    r14615 r14724  
    88 */
    99
    10 #ifndef TR_GETOPT_H
    11 #define TR_GETOPT_H
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    6867/** @} */
    6968
    70 #endif /* TR_GETOPT_H */
  • trunk/libtransmission/tr-lpd.h

    r14321 r14724  
    2525#endif
    2626
    27 #ifndef _TR_LPD_H
    28 #define _TR_LPD_H
     27#pragma once
    2928
    3029/* $Id$ */
     
    4948* @} */
    5049
    51 #endif /* _TR_LPD_H */
    52 
  • trunk/libtransmission/tr-udp.h

    r13625 r14724  
    2222*/
    2323
    24 #ifndef TR_UDP_H
    25 #define TR_UDP_H
     24#pragma once
    2625
    2726#ifndef __TRANSMISSION__
     
    3635                         const uint8_t  * msg, size_t msglen);
    3736
    38 #endif /* #ifndef TR_UDP_H */
  • trunk/libtransmission/tr-utp.h

    r14721 r14724  
    2626#endif
    2727
    28 #ifndef TR_UTP_H
    29 #define TR_UTP_H
     28#pragma once
    3029
    3130int tr_utpPacket (const unsigned char *buf, size_t buflen,
     
    3837                  const struct sockaddr *to, socklen_t tolen);
    3938
    40 #endif /* #ifndef TR_UTP_H */
  • trunk/libtransmission/transmission.h

    r14723 r14724  
    1414 */
    1515
    16 #ifndef TR_TRANSMISSION_H
    17 #define TR_TRANSMISSION_H 1
     16#pragma once
    1817
    1918#ifdef __cplusplus
     
    20642063#endif
    20652064
    2066 #endif
  • trunk/libtransmission/trevent.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_EVENT_H
    15 #define TR_EVENT_H
     14#pragma once
    1615
    1716/**
     
    2625void   tr_runInEventThread (tr_session *, void func (void*), void * user_data);
    2726
    28 #endif
  • trunk/libtransmission/upnp.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_UPNP_H
    15 #define TR_UPNP_H 1
     14#pragma once
    1615
    1716/**
     
    3130                            int doPortCheck);
    3231/* @} */
    33 #endif
  • trunk/libtransmission/utils.h

    r14721 r14724  
    88 */
    99
    10 #ifndef TR_UTILS_H
    11 #define TR_UTILS_H 1
     10#pragma once
    1211
    1312#include <inttypes.h>
     
    533532/** @} */
    534533
    535 #endif
  • trunk/libtransmission/variant-common.h

    r14521 r14724  
    1212#endif
    1313
    14 #ifndef _TR_VARIANT_COMMON_H_
    15 #define _TR_VARIANT_COMMON_H_
     14#pragma once
    1615
    1716typedef void (*VariantWalkFunc)(const tr_variant * val, void * user_data);
     
    6564
    6665
    67 
    68 #endif /* _TR_VARIANT_COMMON_H_ */
  • trunk/libtransmission/variant.h

    r14634 r14724  
    88 */
    99
    10 #ifndef TR_VARIANT_H
    11 #define TR_VARIANT_H 1
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    436435#endif
    437436
    438 #endif
  • trunk/libtransmission/verify.h

    r14241 r14724  
    1212#endif
    1313
    14 #ifndef TR_VERIFY_H
    15 #define TR_VERIFY_H 1
     14#pragma once
    1615
    1716/**
     
    3029/* @} */
    3130
    32 #endif
  • trunk/libtransmission/watchdir-common.h

    r14651 r14724  
    88 */
    99
    10 #ifndef TR_WATCHDIR_COMMON_H
    11 #define TR_WATCHDIR_COMMON_H
     10#pragma once
    1211
    1312#ifndef __LIBTRANSMISSION_WATCHDIR_MODULE__
     
    5352#endif
    5453
    55 #endif /* TR_WATCHDIR_COMMON_H */
  • trunk/libtransmission/watchdir.h

    r14674 r14724  
    88 */
    99
    10 #ifndef TR_WATCHDIR_H
    11 #define TR_WATCHDIR_H
     10#pragma once
    1211
    1312#ifdef __cplusplus
     
    4746#endif
    4847
    49 #endif /* TR_WATCHDIR_H */
  • trunk/libtransmission/web.h

    r14634 r14724  
    88 */
    99
    10 #ifndef TR_HTTP_H
    11 #define TR_HTTP_H
     10#pragma once
    1211
    1312#include <curl/curl.h>
     
    7978#endif
    8079
    81 #endif
  • trunk/libtransmission/webseed.h

    r14241 r14724  
    99
    1010#ifndef __TRANSMISSION__
    11 #error only libtransmission should #include this header.
     11 #error only libtransmission should #include this header.
    1212#endif
    1313
    14 #ifndef TR_WEBSEED_H
    15 #define TR_WEBSEED_H
     14#pragma once
    1615
    1716typedef struct tr_webseed tr_webseed;
     
    2423                           void              * callback_data);
    2524
    26 #endif
  • trunk/qt/AboutDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_ABOUT_DIALOG_H
    11 #define QTR_ABOUT_DIALOG_H
     10#pragma once
    1211
    1312#include <QPointer>
     
    3736};
    3837
    39 #endif // QTR_ABOUT_DIALOG_H
  • trunk/qt/AddData.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_ADD_DATA_H
    11 #define QTR_ADD_DATA_H
     10#pragma once
    1211
    1312#include <QByteArray>
     
    4645};
    4746
    48 #endif // QTR_ADD_DATA_H
  • trunk/qt/Application.h

    r14600 r14724  
    88 */
    99
    10 #ifndef QTR_APPLICATION_H
    11 #define QTR_APPLICATION_H
     10#pragma once
    1211
    1312#include <QApplication>
     
    7473#define qApp static_cast<Application*> (Application::instance ())
    7574
    76 #endif // QTR_APPLICATION_H
  • trunk/qt/BaseDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_BASE_DIALOG_H
    11 #define QTR_BASE_DIALOG_H
     10#pragma once
    1211
    1312#include <QDialog>
     
    2322};
    2423
    25 #endif // QTR_BASE_DIALOG_H
  • trunk/qt/ColumnResizer.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_COLUMN_RESIZER_H
    11 #define QTR_COLUMN_RESIZER_H
     10#pragma once
    1211
    1312#include <QObject>
     
    4039};
    4140
    42 #endif // QTR_COLUMN_RESIZER_H
  • trunk/qt/ComInteropHelper.h

    r14624 r14724  
    88 */
    99
    10 #ifndef QTR_COM_INTEROP_HELPER_H
    11 #define QTR_COM_INTEROP_HELPER_H
     10#pragma once
    1211
    1312#include <memory>
     
    3534};
    3635
    37 #endif // QTR_COM_INTEROP_HELPER_H
  • trunk/qt/CustomVariantType.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TYPES_H
    11 #define QTR_TYPES_H
     10#pragma once
    1211
    1312#include <QVariant>
     
    2625};
    2726
    28 #endif // QTR_TYPES_H
  • trunk/qt/DBusInteropHelper.h

    r14621 r14724  
    88 */
    99
    10 #ifndef QTR_DBUS_INTEROP_HELPER_H
    11 #define QTR_DBUS_INTEROP_HELPER_H
     10#pragma once
    1211
    1312class QObject;
     
    2524};
    2625
    27 #endif // QTR_DBUS_INTEROP_HELPER_H
  • trunk/qt/DetailsDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_DETAILS_DIALOG_H
    11 #define QTR_DETAILS_DIALOG_H
     10#pragma once
    1211
    1312#include <QString>
     
    104103};
    105104
    106 #endif // QTR_DETAILS_DIALOG_H
  • trunk/qt/FaviconCache.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FAVICON_CACHE_H
    11 #define QTR_FAVICON_CACHE_H
     10#pragma once
    1211
    1312#include <QMap>
     
    5554};
    5655
    57 #endif // QTR_FAVICON_CACHE_H
  • trunk/qt/FileTreeDelegate.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FILE_TREE_DELEGATE_H
    11 #define QTR_FILE_TREE_DELEGATE_H
     10#pragma once
    1211
    1312#include <QItemDelegate>
     
    2726};
    2827
    29 #endif // QTR_FILE_TREE_DELEGATE_H
  • trunk/qt/FileTreeItem.h

    r14557 r14724  
    88 */
    99
    10 #ifndef QTR_FILE_TREE_ITEM_H
    11 #define QTR_FILE_TREE_ITEM_H
     10#pragma once
    1211
    1312#include <cstdint>
     
    8786};
    8887
    89 #endif // QTR_FILE_TREE_ITEM_H
  • trunk/qt/FileTreeModel.h

    r14559 r14724  
    88 */
    99
    10 #ifndef QTR_FILE_TREE_MODEL_H
    11 #define QTR_FILE_TREE_MODEL_H
     10#pragma once
    1211
    1312#include <cstdint>
     
    9897};
    9998
    100 #endif // QTR_FILE_TREE_MODEL_H
  • trunk/qt/FileTreeView.h

    r14559 r14724  
    88 */
    99
    10 #ifndef QTR_FILE_TREE_VIEW_H
    11 #define QTR_FILE_TREE_VIEW_H
     10#pragma once
    1211
    1312#include <QSet>
     
    8685};
    8786
    88 #endif // QTR_FILE_TREE_VIEW_H
  • trunk/qt/FilterBar.h

    r14590 r14724  
    88 */
    99
    10 #ifndef QTR_FILTER_BAR_H
    11 #define QTR_FILTER_BAR_H
     10#pragma once
    1211
    1312#include <QWidget>
     
    6261};
    6362
    64 #endif // QTR_FILTER_BAR_H
  • trunk/qt/FilterBarComboBox.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FILTER_BAR_COMBO_BOX_H
    11 #define QTR_FILTER_BAR_COMBO_BOX_H
     10#pragma once
    1211
    1312#include <QComboBox>
     
    4241};
    4342
    44 #endif // QTR_FILTER_BAR_COMBO_BOX_H
  • trunk/qt/FilterBarComboBoxDelegate.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FILTER_BAR_COMBO_BOX_DELEGATE_H
    11 #define QTR_FILTER_BAR_COMBO_BOX_DELEGATE_H
     10#pragma once
    1211
    1312#include <QItemDelegate>
     
    3534};
    3635
    37 #endif // QTR_FILTER_BAR_COMBO_BOX_DELEGATE_H
  • trunk/qt/FilterBarLineEdit.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FILTER_BAR_LINE_EDIT_H
    11 #define QTR_FILTER_BAR_LINE_EDIT_H
     10#pragma once
    1211
    1312#include <QLineEdit>
     
    3332};
    3433
    35 #endif // QTR_FILTER_BAR_LINE_EDIT_H
  • trunk/qt/Filters.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_FILTERS_H
    11 #define QTR_FILTERS_H
     10#pragma once
    1211
    1312#include <QMetaType>
     
    8584Q_DECLARE_METATYPE(SortMode)
    8685
    87 #endif // QTR_FILTERS_H
  • trunk/qt/Formatter.h

    r14540 r14724  
    88 */
    99
    10 #ifndef QTR_FORMATTER_H
    11 #define QTR_FORMATTER_H
     10#pragma once
    1211
    1312#include <cstdint> // int64_t
     
    5655};
    5756
    58 #endif // QTR_FORMATTER_H
  • trunk/qt/FreeSpaceLabel.h

    r14540 r14724  
    88 */
    99
    10 #ifndef QTR_FREE_SPACE_LABEL_H
    11 #define QTR_FREE_SPACE_LABEL_H
     10#pragma once
    1211
    1312#include <cstdint>
     
    4645};
    4746
    48 #endif // QTR_FREE_SPACE_LABEL_H
  • trunk/qt/IconToolButton.h

    r14547 r14724  
    88 */
    99
    10 #ifndef QTR_ICON_TOOL_BUTTON_H
    11 #define QTR_ICON_TOOL_BUTTON_H
     10#pragma once
    1211
    1312#include <QToolButton>
     
    2827};
    2928
    30 #endif // QTR_ICON_TOOL_BUTTON_H
  • trunk/qt/InteropHelper.h

    r14624 r14724  
    88 */
    99
    10 #ifndef QTR_INTEROP_HELPER_H
    11 #define QTR_INTEROP_HELPER_H
     10#pragma once
    1211
    1312#ifdef ENABLE_COM_INTEROP
     
    4140};
    4241
    43 #endif // QTR_INTEROP_HELPER_H
  • trunk/qt/InteropObject.h

    r14624 r14724  
    88 */
    99
    10 #ifndef QTR_INTEROP_OBJECT_H
    11 #define QTR_INTEROP_OBJECT_H
     10#pragma once
    1211
    1312#include <QObject>
     
    3736};
    3837
    39 #endif // QTR_INTEROP_OBJECT_H
  • trunk/qt/LicenseDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_LICENSE_DIALOG_H
    11 #define QTR_LICENSE_DIALOG_H
     10#pragma once
    1211
    1312#include "BaseDialog.h"
     
    2726};
    2827
    29 #endif // QTR_LICENSE_DIALOG_H
  • trunk/qt/MainWindow.h

    r14582 r14724  
    88 */
    99
    10 #ifndef QTR_MAIN_WINDOW_H
    11 #define QTR_MAIN_WINDOW_H
     10#pragma once
    1211
    1312#include <ctime>
     
    178177};
    179178
    180 #endif // QTR_MAIN_WINDOW_H
  • trunk/qt/MakeDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_MAKE_DIALOG_H
    11 #define QTR_MAKE_DIALOG_H
     10#pragma once
    1211
    1312#include <memory>
     
    5453};
    5554
    56 #endif // QTR_MAKE_DIALOG_H
  • trunk/qt/OptionsDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_OPTIONS_DIALOG_H
    11 #define QTR_OPTIONS_DIALOG_H
     10#pragma once
    1211
    1312#include <QCryptographicHash>
     
    8685};
    8786
    88 #endif // QTR_OPTIONS_DIALOG_H
  • trunk/qt/PathButton.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_PATH_BUTTON_H
    11 #define QTR_PATH_BUTTON_H
     10#pragma once
    1211
    1312#include <QToolButton>
     
    6160};
    6261
    63 #endif // QTR_PATH_BUTTON_H
  • trunk/qt/Prefs.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_PREFS_H
    11 #define QTR_PREFS_H
     10#pragma once
    1211
    1312#include <QObject>
     
    190189};
    191190
    192 #endif // QTR_PREFS_H
  • trunk/qt/PrefsDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_PREFS_DIALOG_H
    11 #define QTR_PREFS_DIALOG_H
     10#pragma once
    1211
    1312#include <QMap>
     
    9493};
    9594
    96 #endif // QTR_PREFS_DIALOG_H
  • trunk/qt/RelocateDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_RELOCATE_DIALOG_H
    11 #define QTR_RELOCATE_DIALOG_H
     10#pragma once
    1211
    1312#include <QSet>
     
    4443};
    4544
    46 #endif // QTR_RELOCATE_DIALOG_H
  • trunk/qt/RpcClient.h

    r14608 r14724  
    88 */
    99
    10 #ifndef QTR_RPC_CLIENT_H
    11 #define QTR_RPC_CLIENT_H
     10#pragma once
    1211
    1312#include <memory>
     
    8079};
    8180
    82 #endif // QTR_RPC_CLIENT_H
  • trunk/qt/Session.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_SESSION_H
    11 #define QTR_SESSION_H
     10#pragma once
    1211
    1312#include <QObject>
     
    161160};
    162161
    163 #endif // QTR_SESSION_H
  • trunk/qt/SessionDialog.h

    r14562 r14724  
    88 */
    99
    10 #ifndef QTR_SESSION_DIALOG_H
    11 #define QTR_SESSION_DIALOG_H
     10#pragma once
    1211
    1312#include <QWidgetList>
     
    4544};
    4645
    47 #endif // QTR_SESSION_DIALOG_H
  • trunk/qt/Speed.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_SPEED_H
    11 #define QTR_SPEED_H
     10#pragma once
    1211
    1312class Speed
     
    3332};
    3433
    35 #endif // QTR_SPEED_H
  • trunk/qt/SqueezeLabel.h

    r14539 r14724  
    4040****************************************************************************/
    4141
    42 #ifndef QTR_SQUEEZE_LABEL_H
    43 #define QTR_SQUEEZE_LABEL_H
     42#pragma once
    4443
    4544#include <QLabel>
     
    5857};
    5958
    60 #endif // QTR_SQUEEZE_LABEL_H
  • trunk/qt/StatsDialog.h

    r14561 r14724  
    88 */
    99
    10 #ifndef QTR_STATS_DIALOG_H
    11 #define QTR_STATS_DIALOG_H
     10#pragma once
    1211
    1312#include "BaseDialog.h"
     
    4140};
    4241
    43 #endif // QTR_STATS_DIALOG_H
  • trunk/qt/Torrent.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_H
    11 #define QTR_TORRENT_H
     10#pragma once
    1211
    1312#include <QObject>
     
    340339Q_DECLARE_METATYPE(const Torrent*)
    341340
    342 #endif // QTR_TORRENT_H
  • trunk/qt/TorrentDelegate.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_DELEGATE_H
    11 #define QTR_TORRENT_DELEGATE_H
     10#pragma once
    1211
    1312#include <QStyledItemDelegate>
     
    5453};
    5554
    56 #endif // QTR_TORRENT_DELEGATE_H
  • trunk/qt/TorrentDelegateMin.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_DELEGATE_MIN_H
    11 #define QTR_TORRENT_DELEGATE_MIN_H
     10#pragma once
    1211
    1312#include "TorrentDelegate.h"
     
    2726};
    2827
    29 #endif // QTR_TORRENT_DELEGATE_MIN_H
  • trunk/qt/TorrentFilter.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_FILTER_H
    11 #define QTR_TORRENT_FILTER_H
     10#pragma once
    1211
    1312#include <QSortFilterProxyModel>
     
    5554};
    5655
    57 #endif // QTR_TORRENT_FILTER_H
  • trunk/qt/TorrentModel.h

    r14540 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_MODEL_H
    11 #define QTR_TORRENT_MODEL_H
     10#pragma once
    1211
    1312#include <QAbstractListModel>
     
    8079};
    8180
    82 #endif // QTR_TORRENT_MODEL_H
  • trunk/qt/TorrentView.h

    r14590 r14724  
    88 */
    99
    10 #ifndef QTR_TORRENT_VIEW_H
    11 #define QTR_TORRENT_VIEW_H
     10#pragma once
    1211
    1312#include <QListView>
     
    3938};
    4039
    41 #endif // QTR_TORRENT_VIEW_H
  • trunk/qt/TrackerDelegate.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TRACKER_DELEGATE_H
    11 #define QTR_TRACKER_DELEGATE_H
     10#pragma once
    1211
    1312#include <QItemDelegate>
     
    4342};
    4443
    45 #endif // QTR_TRACKER_DELEGATE_H
  • trunk/qt/TrackerModel.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TRACKER_MODEL_H
    11 #define QTR_TRACKER_MODEL_H
     10#pragma once
    1211
    1312#include <QAbstractListModel>
     
    5554};
    5655
    57 #endif // QTR_TRACKER_MODEL_H
  • trunk/qt/TrackerModelFilter.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_TRACKER_MODEL_FILTER_H
    11 #define QTR_TRACKER_MODEL_FILTER_H
     10#pragma once
    1211
    1312#include <QSortFilterProxyModel>
     
    3130};
    3231
    33 #endif // QTR_TRACKER_MODEL_FILTER_H
  • trunk/qt/Utils.h

    r14554 r14724  
    88 */
    99
    10 #ifndef QTR_UTILS_H
    11 #define QTR_UTILS_H
     10#pragma once
    1211
    1312#include <cctype> // isxdigit()
     
    8685};
    8786
    88 #endif // QTR_UTILS_H
  • trunk/qt/WatchDir.h

    r14539 r14724  
    88 */
    99
    10 #ifndef QTR_WATCH_DIR_H
    11 #define QTR_WATCH_DIR_H
     10#pragma once
    1211
    1312#include <QObject>
     
    5655};
    5756
    58 #endif // QTR_WATCH_DIR_H
  • trunk/utils/units.h

    r14295 r14724  
    88 */
    99
    10 #ifndef UNITS_H
    11 #define UNITS_H
     10#pragma once
    1211
    1312#define MEM_K 1024
     
    3130#define SPEED_T_STR "TB/s"
    3231
    33 #endif
Note: See TracChangeset for help on using the changeset viewer.