From 9a59ee76e464ca08e603afbaead1eca4cb95e08d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 10 Jun 2006 12:02:39 +0200 Subject: [PATCH] msi: Make all the ops structures static and const. --- dlls/msi/create.c | 2 +- dlls/msi/delete.c | 2 +- dlls/msi/distinct.c | 2 +- dlls/msi/insert.c | 2 +- dlls/msi/msipriv.h | 2 +- dlls/msi/order.c | 2 +- dlls/msi/select.c | 2 +- dlls/msi/table.c | 2 +- dlls/msi/where.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/msi/create.c b/dlls/msi/create.c index 5097c5711da..a8fe65caef6 100644 --- a/dlls/msi/create.c +++ b/dlls/msi/create.c @@ -207,7 +207,7 @@ static UINT CREATE_delete( struct tagMSIVIEW *view ) } -MSIVIEWOPS create_ops = +static const MSIVIEWOPS create_ops = { CREATE_fetch_int, NULL, diff --git a/dlls/msi/delete.c b/dlls/msi/delete.c index 04c520eb1cb..6a9d62adc7f 100644 --- a/dlls/msi/delete.c +++ b/dlls/msi/delete.c @@ -191,7 +191,7 @@ static UINT DELETE_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS delete_ops = +static const MSIVIEWOPS delete_ops = { DELETE_fetch_int, DELETE_fetch_stream, diff --git a/dlls/msi/distinct.c b/dlls/msi/distinct.c index 6a64094db4e..a00f274a5c4 100644 --- a/dlls/msi/distinct.c +++ b/dlls/msi/distinct.c @@ -268,7 +268,7 @@ static UINT DISTINCT_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS distinct_ops = +static const MSIVIEWOPS distinct_ops = { DISTINCT_fetch_int, NULL, diff --git a/dlls/msi/insert.c b/dlls/msi/insert.c index 7dcf81eb25c..85c9f51a3f7 100644 --- a/dlls/msi/insert.c +++ b/dlls/msi/insert.c @@ -223,7 +223,7 @@ static UINT INSERT_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS insert_ops = +static const MSIVIEWOPS insert_ops = { INSERT_fetch_int, NULL, diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 3262ffa766c..bdc24c6e419 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -189,7 +189,7 @@ typedef struct tagMSIVIEWOPS struct tagMSIVIEW { MSIOBJECTHDR hdr; - MSIVIEWOPS *ops; + const MSIVIEWOPS *ops; }; struct msi_dialog_tag; diff --git a/dlls/msi/order.c b/dlls/msi/order.c index 93ee3a29891..82b12698405 100644 --- a/dlls/msi/order.c +++ b/dlls/msi/order.c @@ -268,7 +268,7 @@ static UINT ORDER_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS order_ops = +static const MSIVIEWOPS order_ops = { ORDER_fetch_int, NULL, diff --git a/dlls/msi/select.c b/dlls/msi/select.c index 2e3716e50b4..abb2dbdb33b 100644 --- a/dlls/msi/select.c +++ b/dlls/msi/select.c @@ -215,7 +215,7 @@ static UINT SELECT_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS select_ops = +static const MSIVIEWOPS select_ops = { SELECT_fetch_int, SELECT_fetch_stream, diff --git a/dlls/msi/table.c b/dlls/msi/table.c index cf80d5d411b..007958e3045 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -1494,7 +1494,7 @@ static UINT TABLE_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS table_ops = +static const MSIVIEWOPS table_ops = { TABLE_fetch_int, TABLE_fetch_stream, diff --git a/dlls/msi/where.c b/dlls/msi/where.c index a02b19b7aec..8fbedce4ded 100644 --- a/dlls/msi/where.c +++ b/dlls/msi/where.c @@ -408,7 +408,7 @@ static UINT WHERE_find_matching_rows( struct tagMSIVIEW *view, UINT col, } -MSIVIEWOPS where_ops = +static const MSIVIEWOPS where_ops = { WHERE_fetch_int, WHERE_fetch_stream, -- 2.11.4.GIT