mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
Bug 1399756 - (More) Code clean-up: Style nits, typos and trailing spaces
Tag #1273
This commit is contained in:
parent
c021f0c983
commit
8ccc206d44
13 changed files with 21 additions and 21 deletions
|
|
@ -303,7 +303,7 @@ typedef void (* mdbYarn_mGrow)(mdbYarn* self, mdb_size inNewSize);
|
|||
**| original mdbYarn instance decides whether a grow method is necessary
|
||||
**| or desirable, and uses only grow methods suitable for the buffering
|
||||
**| nature of a specific mdbYarn instance. (For example, Buf might be a
|
||||
**| staticly allocated string space which switches to something heap-based
|
||||
**| statically allocated string space which switches to something heap-based
|
||||
**| when grown, and subsequent calls to grow the yarn must distinguish the
|
||||
**| original static string from heap allocated space, etc.) Note that the
|
||||
**| method stored in mYarn_Grow can change, and this might be a common way
|
||||
|
|
@ -1255,7 +1255,7 @@ public:
|
|||
**| not intended to nest. (If small transactions were nested inside large
|
||||
**| transactions, that would imply that a single large transaction must be
|
||||
**| atomic over all the contained small transactions; but actually we intend
|
||||
**| smalls transaction never be undone once commited due to, say, aborting a
|
||||
**| smalls transaction never be undone once committed due to, say, aborting a
|
||||
**| transaction of greater significance.) The small, large, and session level
|
||||
**| commits have equal granularity, and differ only in risk of loss from the
|
||||
**| perspective of an application. Small commits characterize changes that
|
||||
|
|
@ -1273,13 +1273,13 @@ public:
|
|||
**|
|
||||
**|| aborts: the only way to abort changes to a store is by closing the store.
|
||||
**| So there is no specific method for causing any abort. Stores must discard
|
||||
**| all changes made that are uncommited when a store is closed. This design
|
||||
**| all changes made that are uncommitted when a store is closed. This design
|
||||
**| choice makes the implementations of tables, rows, and cells much less
|
||||
**| complex because they need not maintain a record of undobable changes. When
|
||||
**| a store is closed, presumably this precipitates the closure of all tables,
|
||||
**| rows, and cells in the store as well. So an application can revert the
|
||||
**| state of a store in the user interface by quietly closing and reopening a
|
||||
**| store, because this will discard uncommited changes and show old content.
|
||||
**| store, because this will discard uncommitted changes and show old content.
|
||||
**| This implies an app that closes a store will need to send a "scramble"
|
||||
**| event notification to any views that depend on old discarded content.
|
||||
|*/
|
||||
|
|
@ -1339,7 +1339,7 @@ public:
|
|||
mdb_scope inRowScope, // row scope for row ids
|
||||
nsIMdbRow** acqRow) = 0; // create new row
|
||||
// Note this row must be added to some table or cell child before the
|
||||
// store is closed in order to make this row persist across sesssions.
|
||||
// store is closed in order to make this row persist across sessions.
|
||||
|
||||
// } ----- end row methods -----
|
||||
|
||||
|
|
@ -1894,7 +1894,7 @@ public:
|
|||
// the column which is actually sorted by ioSorting. This method
|
||||
// is most useful in conjunction with nsIMdbSorting::SetCompare(),
|
||||
// because otherwise a caller would not be able to override the
|
||||
// comparison ordering method used during searchs. Note that some
|
||||
// comparison ordering method used during searches. Note that some
|
||||
// database implementations might be unable to use an arbitrarily
|
||||
// specified sort order, either due to schema or runtime interface
|
||||
// constraints, in which case ioSorting might not actually be used.
|
||||
|
|
@ -2401,7 +2401,7 @@ public:
|
|||
//
|
||||
// This is an alternative to the GetYarn() method, which has copy semantics
|
||||
// only; AliasYarn() relaxes a robust safety principle only for performance
|
||||
// reasons, to accomodate the need for callers to transform text content to
|
||||
// reasons, to accommodate the need for callers to transform text content to
|
||||
// some other canonical representation that would necessitate an additional
|
||||
// copy and transformation when such is incompatible with the mdbYarn format.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue