@@ -229,7 +229,7 @@ public SciterValue ValueInvoke ( ref SciterValue value, SciterValue? context, IE
229229 /// </summary>
230230 /// <returns>Return element.</returns>
231231 /// <exception cref="Exception">If Result will be not zero it will be part of error message.</exception>
232- public nint ElementFromValue ( SciterValue sciterValue ) {
232+ public nint ElementFromValue ( ref SciterValue sciterValue ) {
233233 var pointer = nint . Zero ;
234234 var domResult = m_basicApi . SciterElementUnwrap ( sciterValue , ref pointer ) ;
235235 if ( domResult != 0 ) throw new Exception ( $ "Can't get element from value. DomResult is { domResult } " ) ;
@@ -255,15 +255,15 @@ public SciterValue ElementToValue ( nint element ) {
255255 /// <summary>
256256 /// Sets variable that will be available in each document loaded after this call.
257257 /// </summary>
258- public void SetSharedVariable ( string name , SciterValue value ) {
258+ public void SetSharedVariable ( string name , ref SciterValue value ) {
259259 var code = m_basicApi . SciterSetVariable ( nint . Zero , name , value ) ;
260260 if ( code != ( uint ) DomResult . SCDOM_OK ) throw new Exception ( $ "Can't set variable { name } . Error is { code } ." ) ;
261261 }
262262
263263 /// <summary>
264264 /// Sets variable that will be available in root document of main window, call it in or after DOCUMENT_CREATED event.
265265 /// </summary>
266- public void SetMainWindowVariable ( string name , SciterValue value ) {
266+ public void SetMainWindowVariable ( string name , ref SciterValue value ) {
267267 var code = m_basicApi . SciterSetVariable ( m_mainWindow , name , value ) ;
268268 if ( code != ( uint ) DomResult . SCDOM_OK ) throw new Exception ( $ "Can't set variable { name } . Error is { code } ." ) ;
269269 }
0 commit comments