diff options
author | Michele Calgaro <[email protected]> | 2018-08-23 15:39:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-08-23 15:42:22 +0900 |
commit | 6a49d44485a5669ba1d31704cd07606f4cbef652 (patch) | |
tree | 0423939a6780f92a1e9cfbe24bb7b4d6fcf59b30 | |
parent | 4e0994c834b6e20ec04aacde48b4f995a8407706 (diff) | |
download | kbarcode-6a49d44485a5669ba1d31704cd07606f4cbef652.tar.gz kbarcode-6a49d44485a5669ba1d31704cd07606f4cbef652.zip |
Fixed typedef-related warnings from compiler.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c50e1bb2ceb8e62b06818f1f89d15c99c23eddde)
-rw-r--r-- | kbarcode/barkode.h | 2 | ||||
-rw-r--r-- | kbarcode/batchprinter.h | 2 | ||||
-rw-r--r-- | kbarcode/printersettings.h | 4 | ||||
-rw-r--r-- | kbarcode/sqltables.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/kbarcode/barkode.h b/kbarcode/barkode.h index 9c4bfd9..baeadb6 100644 --- a/kbarcode/barkode.h +++ b/kbarcode/barkode.h @@ -54,7 +54,7 @@ enum { NOCUT = 0x00001, MULTILINE = 0x00002, NOTEXT = 0x00004, NOSCALE = 0x00008 /** This structure holds information about a supported barcode encoding typedef */ -typedef struct tBarcodeInfo +struct tBarcodeInfo { /** the name which is stored for identification in the xml file * and used as commandline parameter for external tools diff --git a/kbarcode/batchprinter.h b/kbarcode/batchprinter.h index 6da5ca5..0eb5f02 100644 --- a/kbarcode/batchprinter.h +++ b/kbarcode/batchprinter.h @@ -46,7 +46,7 @@ typedef TQValueList< TQMap<TQString,TQString> > TVariableList; class BatchPrinter { public: - typedef enum EOutputFormat { POSTSCRIPT = 0, IMAGE, BCP }; + enum EOutputFormat { POSTSCRIPT = 0, IMAGE, BCP }; enum EImageFileName { E_ARTICLE, E_BARCODE, E_CUSTOM }; struct data { diff --git a/kbarcode/printersettings.h b/kbarcode/printersettings.h index 765cf08..de339b8 100644 --- a/kbarcode/printersettings.h +++ b/kbarcode/printersettings.h @@ -24,7 +24,7 @@ class KURL; -typedef struct labelprinterdata { +struct labelprinterdata { int articleEvent1; int articleEvent2; int articleEvent3; @@ -46,7 +46,7 @@ typedef struct labelprinterdata { TQString quote; }; -typedef struct PageFormatInfo +struct PageFormatInfo { KPrinter::PageSize kprinter; const char* shortName; // Short name diff --git a/kbarcode/sqltables.h b/kbarcode/sqltables.h index 36c08ab..a9ea6fb 100644 --- a/kbarcode/sqltables.h +++ b/kbarcode/sqltables.h @@ -33,7 +33,7 @@ // Holds all information // necessary for connecting // to a database -typedef struct mysqldata { +struct mysqldata { TQString username; TQString password; TQString hostname; // localhost |